CVE-2024-39497
MediumIn the Linux kernel, the following vulnerability has been resolved: drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE) Lack of check for copy-on-write (COW) mapping in drm_gem_shmem_mmap allows users to call mmap with PROT_WRITE and MAP_PRIVATE flag causing a kernel panic due to BUG_ON in vmf_insert_pfn_prot: BUG_ON((vma->vm_flags & VM_PFNMAP) && is_cow_mapping(vma->vm_flags)); Return -EINVAL early if COW mapping is detected. This bug affects all drm drivers using default shmem helpers. It can be reproduced by this simple example: void *ptr = mmap(0, size, PROT_WRITE, MAP_PRIVATE, fd, mmap_offset); ptr[0] = 0;
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-617CVE-2024-39497 is classified as CWE-617
See CWE-617 on MITRE CWE for full details on this weakness type.
References
The following references provide additional information about CVE-2024-39497 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/03c71c42809ef4b17f5d874cdb2d3bf40e847b86
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1b4a8b89bf6787090b56424d269bf84ba00c3263
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2219e5f97244b79c276751a1167615b9714db1b0
Frequently asked questions
-
What is CVE-2024-39497?
CVE-2024-39497 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . CVE-2024-39497 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-39497?
CVE-2024-39497 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-39497?
No patch is currently available for CVE-2024-39497. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
Is CVE-2024-39497 actively exploited?
No — CVE-2024-39497 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.