CVE-2024-35872: mm/secretmem: fix GUP-fast succeeding on secretmem folios
Vulnerability summary
CVE-2024-35872 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 15.5% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 21 · Related 20Timeline
- 19-05-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/secretmem: fix GUP-fast succeeding on secretmem folios folio_is_secretmem() currently relies on secretmem folios being LRU folios, to save some cycles. However, folios might reside in a folio batch without the LRU flag set, or temporarily have their LRU flag cleared. Consequently, the LRU flag is unreliable for this purpose. In particular, this is the case when secretmem_fault() allocates a fresh page and calls filemap_add_folio()->folio_add_lru(). The folio might be added to the per-cpu folio batch and won't get the LRU flag set until the batch was drained using e.g., lru_add_drain(). Consequently, folio_is_secretmem() might not detect secretmem folios and GUP-fast can succeed in grabbing a secretmem folio, crashing the kernel when we would later try reading/writing to the folio, because the folio has been unmapped from the directmap. Fix it by removing that unreliable check.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-11-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 causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu111 products
- linux< 5.15.0-116.126 | < 6.8.0-38.38
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1065.71 | < 6.8.0-1011.12
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 6564b014af92b677c1f07c44d7f5b595d589cf6e | ≥ 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 9c2b4b657739ecda38e3b383354a29566955ac48 | ≥ 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 43fad1d0284de30159661d0badfc3cbaf7e6f8f8 | ≥ 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 201e4aaf405dfd1308da54448654053004c579b5 | ≥ 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, < 65291dcfcf8936e1b23cfd7718fdfde7cfaf7706 | 5.14
- linux_kernel≥ 5.14, < 5.15.154 | ≥ 5.16, < 6.1.85 | ≥ 6.2, < 6.6.26 | ≥ 6.7, < 6.8.5 | 6.9:rc1 | 6.9:rc2
Debian1 product
- linux< 6.1.85-1 | < 6.8.9-1
3 vendors · 114 products