HomeDefectsLIN1025-3328
Fixed

LIN1025-3328 : Security Advisory - linux - CVE-2025-38564

Created: Aug 19, 2025    Updated: Sep 1, 2025
Resolved Date: Aug 25, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]perf/core: Handle buffer mapping fail correctly in perf_mmap()[EOL][EOL]After successful allocation of a buffer or a successful attachment to an[EOL]existing buffer perf_mmap() tries to map the buffer read only into the page[EOL]table. If that fails, the already set up page table entries are zapped, but[EOL]the other perf specific side effects of that failure are not handled.  The[EOL]calling code just cleans up the VMA and does not invoke perf_mmap_close().[EOL][EOL]This leaks reference counts, corrupts user->vm accounting and also results[EOL]in an unbalanced invocation of event::event_mapped().[EOL][EOL]Cure this by moving the event::event_mapped() invocation before the[EOL]map_range() call so that on map_range() failure perf_mmap_close() can be[EOL]invoked without causing an unbalanced event::event_unmapped() call.[EOL][EOL]perf_mmap_close() undoes the reference counts and eventually frees buffers.

CREATE(Triage):(User=lchen-cn) [CVE-2025-38564 (https://nvd.nist.gov/vuln/detail/CVE-2025-38564)