CVE-2024-39497: drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)
Vulnerability summary
CVE-2024-39497 is a medium (CVSS 5.5) Reachable Assertion vulnerability in linux. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 19.9% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 32 · Related 29Timeline
- 12-07-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In 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 metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
20%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu124 products
- linuxAll versions (No fix recorded) | < 5.15.0-133.144 | < 6.8.0-44.44
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1078.85 | < 6.8.0-1015.16
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < a508a102edf8735adc9bb73d37dd13c38d1a1b10 | ≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < 3ae63a8c1685e16958560ec08d30defdc5b9cca0 | ≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < 2219e5f97244b79c276751a1167615b9714db1b0 | ≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < 1b4a8b89bf6787090b56424d269bf84ba00c3263 | ≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < 03c71c42809ef4b17f5d874cdb2d3bf40e847b86 | ≥ 2194a63a818db71065ebe09c8104f5f021ca4e7b, < 39bc27bd688066a63e56f7f64ad34fae03fbe3b8 | 5.2
- linux_kernel≥ 5.2, < 5.10.229 | ≥ 5.11, < 5.15.169 | ≥ 5.16, < 6.1.114 | ≥ 6.2, < 6.6.35 | ≥ 6.7, < 6.9.6 | 6.10:rc1
Debian1 product
- linux< 6.1.115-1 | < 6.9.7-1
3 vendors · 127 products