5.5

CVE-2024-39497: drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)

Modified
AliasesUBUNTU-CVE-2024-39497DEBIAN-CVE-2024-39497
Published 12-07-2024Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.27%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 32 · Related 29

Timeline

  1. 12-07-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

33 links
Show all 33 references