Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

mm/secretmem: fix GUP-fast succeeding on secretmem folios

CVSS 3.1 7.8 HIGHCheck source for fixed versionsKEV status unknown

cve-program · CVE-2024-35872

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2024-35872

Published

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "include/linux/secretmem.h"
                    ],
                    "versions": [
                        {
                            "version": "1507f51255c9ff07d75909a84e7c0d7f3c4b2f49",
                            "lessThan": "6564b014af92b677c1f07c44d7f5b595d589cf6e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1507f51255c9ff07d75909a84e7c0d7f3c4b2f49",
                            "lessThan": "9c2b4b657739ecda38e3b383354a29566955ac48",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1507f51255c9ff07d75909a84e7c0d7f3c4b2f49",
                            "lessThan": "43fad1d0284de30159661d0badfc3cbaf7e6f8f8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1507f51255c9ff07d75909a84e7c0d7f3c4b2f49",
                            "lessThan": "201e4aaf405dfd1308da54448654053004c579b5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1507f51255c9ff07d75909a84e7c0d7f3c4b2f49",
                            "lessThan": "65291dcfcf8936e1b23cfd7718fdfde7cfaf7706",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                }

Linux

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "include/linux/secretmem.h"
                    ],
                    "versions": [
                        {
                            "version": "5.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.154",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.85",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.26",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8.5",
                            "lessThanOrEqual": "6.8.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 23 Nov 03:08 UTC · 274 of 275 readable · 269 fully read · documentation 469/469 current