7.8
HIGH CVSS 3.1
CVE-2026-74632
mm/huge_memory: fix huge_zero_pfn race
Description

In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix huge_zero_pfn race Patch series "mm/huge_memory: fix huge_zero_pfn race", v2. There is a subtle race in the reference-counted huge_zero_folio implementation. The fast path atomic logic fails to account for the fact that the shrinker (which drops the final huge_zero_refcount pin) can overwrite huge_zero_pfn with the ~0UL sentinel value in shrink_huge_zero_folio_scan() after a racing get_huge_zero_folio() installed a valid value there. This results in huge_zero_folio being correctly set but huge_zero_pfn being set incorrectly and thus is_huge_zero_pfn() and consequently is_huge_zero_pmd() will misidentify the huge zero folio as being an ordinary THP folio. This can result in the huge zero folio being split and otherwise treated incorrectly. The solution to this is very subtle as there is an atomic fast path, and thus ordering in weakly ordered architectures has to be treated very carefully. The first commit fixes the issue by introducing a spinlock around huge_zero_[pfn, folio, refcount] write, with careful consideration paid to load/store ordering in the fast path. It is placed first and kept as small as possible so that it can be backported on its own. The second commit is a pure cleanup which reworks the CONFIG_PERSISTENT_HUGE_ZERO_FOLIO logic to better separate the persistent logic from the dynamically allocated one. This patch (of 2): If !CONFIG_PERSISTENT_HUGE_ZERO_FOLIO, the huge_zero_folio is refcounted by huge_zero_refcount and returned by mm_get_huge_zero_folio(). When the caller is done with the huge zero page, its reference count is decremented. Only a shrinker can set the reference count to zero. A race can unfortunately occur between a shrinker decrementing the reference count to zero and a concurrent page fault. This is because shrink_huge_zero_folio_scan() might, if very unlucky, be preempted between setting huge_zero_refcount to zero and writing an invalid value. During this time get_huge_zero_folio() could write to huge_zero_pfn before shrink_huge_zero_folio_scan() resumes. In this event the huge zero folio will be persistently misidentified causing the THP code path to be entered inappropriately for the huge zero folio: CPU 0 CPU 1 =======================================|================================= shrink_huge_zero_folio_scan() | atomic_cmpxchg() sets refcount to 0 | xchg() sets huge_zero_folio to NULL | get_huge_zero_folio() | | atomic_inc_not_zero() -> zero preempted for a long time | Allocate new huge zero folio | | Write valid huge_zero_folio v | Write valid huge_zero_pfn Overwrite huge_zero_pfn with ~0UL <--- Invalid overwrite! This results in is_huge_zero_pfn() and is_huge_zero_pmd() incorrectly returning false for a huge zero page which could result in issues like the huge zero folio being incorrectly split. Note that the issue is with huge_zero_pfn not huge_zero_folio, as get_huge_zero_folio() uses cmpxchg() gated on huge_zero_folio being NULL with a retry loop and shrink_huge_zero_folio_scan() uses xchg() to set huge_zero_folio. Fix the issue by introducing a spinlock, huge_zero_lock, to prevent concurrent write of huge_zero_folio, huge_zero_pfn and huge_zero_refcount. There needs to be significant care taken here to ensure correctness: The fast path in get_huge_zero_folio() uses atomic_inc_not_zero(), which is outside of the critical section, and means huge zero allocation is gated on zero huge_zero_refcount. The fast path doesn't use huge_zero_lock, so the critical section is irrelevant to it. So invariants are required - huge_zero_refcount MUST: * Only be set in the huge_zero_lock critical section to ensure serialisation of huge_zero_pfn, huge_zero_folio and ---truncated---

INFO

Published Date :

Aug. 22, 2026, 4:16 p.m.

Last Modified :

Oct. 24, 2026, 3:10 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-74632 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Fix a subtle race condition in the huge zero folio implementation by using a spinlock.
  • Introduce a spinlock around huge_zero_[pfn, folio, refcount] writes.
  • Ensure proper load/store ordering in the fast path.
  • Update shrinker logic to correctly handle folio states.
  • Backport the fix for the race condition.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-74632 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-74632 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-74632 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-74632 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 24, 2026

    Action Type Old Value New Value
    Changed Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/huge_memory: corrige la condición de carrera de huge_zero_pfn Serie de parches “mm/huge_memory: corrige la condición de carrera de huge_zero_pfn”, v2. Existe una sutil condición de carrera en la implementación de huge_zero_folio con conteo de referencias. La lógica atómica de la ruta rápida no tiene en cuenta el hecho de que el 'shrinker' (que elimina el último 'pin' de huge_zero_refcount) puede sobrescribir huge_zero_pfn con el valor centinela ~0UL en shrink_huge_zero_folio_scan() después de que un get_huge_zero_folio() en carrera haya instalado un valor válido allí. Esto resulta en que huge_zero_folio se establece correctamente, pero huge_zero_pfn se establece incorrectamente y, por lo tanto, is_huge_zero_pfn() y, consecuentemente, is_huge_zero_pmd() identificarán erróneamente el 'huge zero folio' como un 'THP folio' ordinario. Esto puede resultar en que el 'huge zero folio' sea dividido y tratado incorrectamente de otras maneras. La solución a esto es muy sutil, ya que existe una ruta rápida atómica y, por lo tanto, el ordenamiento en arquitecturas débilmente ordenadas debe tratarse con mucho cuidado. El primer 'commit' corrige el problema introduciendo un 'spinlock' alrededor de la escritura de huge_zero_[pfn, folio, refcount], con una cuidadosa consideración al ordenamiento de carga/almacenamiento en la ruta rápida. Se coloca primero y se mantiene lo más pequeño posible para que pueda ser 'backported' por sí mismo. El segundo 'commit' es una limpieza pura que reelabora la lógica de CONFIG_PERSISTENT_HUGE_ZERO_FOLIO para separar mejor la lógica persistente de la asignada dinámicamente. Este parche (de 2): Si !CONFIG_PERSISTENT_HUGE_ZERO_FOLIO, el huge_zero_folio es contado por huge_zero_refcount y devuelto por mm_get_huge_zero_folio(). Cuando el llamador termina con la página de 'huge zero', su conteo de referencias se decrementa. Solo un 'shrinker' puede establecer el conteo de referencias en cero. Desafortunadamente, puede ocurrir una condición de carrera entre un 'shrinker' que decrementa el conteo de referencias a cero y una falla de página concurrente. Esto se debe a que shrink_huge_zero_folio_scan() podría, si tiene muy mala suerte, ser 'preempted' entre establecer huge_zero_refcount en cero y escribir un valor inválido. Durante este tiempo, get_huge_zero_folio() podría escribir en huge_zero_pfn antes de que shrink_huge_zero_folio_scan() se reanude. En este caso, el 'huge zero folio' será persistentemente mal identificado, lo que provocará que la ruta de código THP se ingrese de manera inapropiada para el 'huge zero folio': CPU 0 CPU 1 =======================================|================================= shrink_huge_zero_folio_scan() | atomic_cmpxchg() establece refcount en 0 | xchg() establece huge_zero_folio en NULL | get_huge_zero_folio() | | atomic_inc_not_zero() -> cero 'preempted' por mucho tiempo | Asigna nuevo 'huge zero folio' | | Escribe 'huge_zero_folio' válido v | Escribe 'huge_zero_pfn' válido Sobrescribe huge_zero_pfn con ~0UL <- -- ¡Sobrescritura inválida! Esto resulta en que is_huge_zero_pfn() e is_huge_zero_pmd() devuelvan incorrectamente 'false' para una página de 'huge zero', lo que podría resultar en problemas como que el 'huge zero folio' sea dividido incorrectamente. Tenga en cuenta que el problema es con huge_zero_pfn, no con huge_zero_folio, ya que get_huge_zero_folio() usa cmpxchg() condicionado a que huge_zero_folio sea NULL con un bucle de reintento y shrink_huge_zero_folio_scan() usa xchg() para establecer huge_zero_folio. Corrige el problema introduciendo un 'spinlock', huge_zero_lock, para evitar la escritura concurrente de huge_zero_folio, huge_zero_pfn y huge_zero_refcount. Aquí se debe tener un cuidado significativo para asegurar la corrección: Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/huge_memory: corrige la condición de carrera de huge_zero_pfn Serie de parches “mm/huge_memory: corrige la condición de carrera de huge_zero_pfn”, v2. Existe una sutil condición de carrera en la implementación de huge_zero_folio con conteo de referencias. La lógica atómica de la ruta rápida no tiene en cuenta el hecho de que el 'shrinker' (que elimina el último 'pin' de huge_zero_refcount) puede sobrescribir huge_zero_pfn con el valor centinela ~0UL en shrink_huge_zero_folio_scan() después de que un get_huge_zero_folio() en carrera haya instalado un valor válido allí. Esto resulta en que huge_zero_folio se establece correctamente, pero huge_zero_pfn se establece incorrectamente y, por lo tanto, is_huge_zero_pfn() y, consecuentemente, is_huge_zero_pmd() identificarán erróneamente el 'huge zero folio' como un 'THP folio' ordinario. Esto puede resultar en que el 'huge zero folio' sea dividido y tratado incorrectamente de otras maneras. La solución a esto es muy sutil, ya que existe una ruta rápida atómica y, por lo tanto, el ordenamiento en arquitecturas débilmente ordenadas debe tratarse con mucho cuidado. El primer 'commit' corrige el problema introduciendo un 'spinlock' alrededor de la escritura de huge_zero_[pfn, folio, refcount], con una cuidadosa consideración al ordenamiento de carga/almacenamiento en la ruta rápida. Se coloca primero y se mantiene lo más pequeño posible para que pueda ser 'backported' por sí mismo. El segundo 'commit' es una limpieza pura que reelabora la lógica de CONFIG_PERSISTENT_HUGE_ZERO_FOLIO para separar mejor la lógica persistente de la asignada dinámicamente. Este parche (de 2): Si !CONFIG_PERSISTENT_HUGE_ZERO_FOLIO, el huge_zero_folio es contado por huge_zero_refcount y devuelto por mm_get_huge_zero_folio(). Cuando el llamador termina con la página de 'huge zero', su conteo de referencias se decrementa. Solo un 'shrinker' puede establecer el conteo de referencias en cero. Desafortunadamente, puede ocurrir una condición de carrera entre un 'shrinker' que decrementa el conteo de referencias a cero y una falla de página concurrente. Esto se debe a que shrink_huge_zero_folio_scan() podría, si tiene muy mala suerte, ser 'preempted' entre establecer huge_zero_refcount en cero y escribir un valor inválido. Durante este tiempo, get_huge_zero_folio() podría escribir en huge_zero_pfn antes de que shrink_huge_zero_folio_scan() se reanude. En este caso, el 'huge zero folio' será persistentemente mal identificado, lo que provocará que la ruta de código THP se ingrese de manera inapropiada para el 'huge zero folio': CPU 0 CPU 1 =======================================|================================= shrink_huge_zero_folio_scan() | atomic_cmpxchg() establece refcount en 0 | xchg() establece huge_zero_folio en NULL | get_huge_zero_folio() | | atomic_inc_not_zero() -mayor que cero 'preempted' por mucho tiempo | Asigna nuevo 'huge zero folio' | | Escribe 'huge_zero_folio' válido v | Escribe 'huge_zero_pfn' válido Sobrescribe huge_zero_pfn con ~0UL menor que- -- ¡Sobrescritura inválida! Esto resulta en que is_huge_zero_pfn() e is_huge_zero_pmd() devuelvan incorrectamente 'false' para una página de 'huge zero', lo que podría resultar en problemas como que el 'huge zero folio' sea dividido incorrectamente. Tenga en cuenta que el problema es con huge_zero_pfn, no con huge_zero_folio, ya que get_huge_zero_folio() usa cmpxchg() condicionado a que huge_zero_folio sea NULL con un bucle de reintento y shrink_huge_zero_folio_scan() usa xchg() para establecer huge_zero_folio. Corrige el problema introduciendo un 'spinlock', huge_zero_lock, para evitar la escritura concurrente de huge_zero_folio, huge_zero_pfn y huge_zero_refcount. Aquí se debe tener un cuidado significativo para asegurar la --TRUNCADO--
  • CVE Translated by [email protected]

    Oct. 23, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/huge_memory: corrige la condición de carrera de huge_zero_pfn Serie de parches “mm/huge_memory: corrige la condición de carrera de huge_zero_pfn”, v2. Existe una sutil condición de carrera en la implementación de huge_zero_folio con conteo de referencias. La lógica atómica de la ruta rápida no tiene en cuenta el hecho de que el 'shrinker' (que elimina el último 'pin' de huge_zero_refcount) puede sobrescribir huge_zero_pfn con el valor centinela ~0UL en shrink_huge_zero_folio_scan() después de que un get_huge_zero_folio() en carrera haya instalado un valor válido allí. Esto resulta en que huge_zero_folio se establece correctamente, pero huge_zero_pfn se establece incorrectamente y, por lo tanto, is_huge_zero_pfn() y, consecuentemente, is_huge_zero_pmd() identificarán erróneamente el 'huge zero folio' como un 'THP folio' ordinario. Esto puede resultar en que el 'huge zero folio' sea dividido y tratado incorrectamente de otras maneras. La solución a esto es muy sutil, ya que existe una ruta rápida atómica y, por lo tanto, el ordenamiento en arquitecturas débilmente ordenadas debe tratarse con mucho cuidado. El primer 'commit' corrige el problema introduciendo un 'spinlock' alrededor de la escritura de huge_zero_[pfn, folio, refcount], con una cuidadosa consideración al ordenamiento de carga/almacenamiento en la ruta rápida. Se coloca primero y se mantiene lo más pequeño posible para que pueda ser 'backported' por sí mismo. El segundo 'commit' es una limpieza pura que reelabora la lógica de CONFIG_PERSISTENT_HUGE_ZERO_FOLIO para separar mejor la lógica persistente de la asignada dinámicamente. Este parche (de 2): Si !CONFIG_PERSISTENT_HUGE_ZERO_FOLIO, el huge_zero_folio es contado por huge_zero_refcount y devuelto por mm_get_huge_zero_folio(). Cuando el llamador termina con la página de 'huge zero', su conteo de referencias se decrementa. Solo un 'shrinker' puede establecer el conteo de referencias en cero. Desafortunadamente, puede ocurrir una condición de carrera entre un 'shrinker' que decrementa el conteo de referencias a cero y una falla de página concurrente. Esto se debe a que shrink_huge_zero_folio_scan() podría, si tiene muy mala suerte, ser 'preempted' entre establecer huge_zero_refcount en cero y escribir un valor inválido. Durante este tiempo, get_huge_zero_folio() podría escribir en huge_zero_pfn antes de que shrink_huge_zero_folio_scan() se reanude. En este caso, el 'huge zero folio' será persistentemente mal identificado, lo que provocará que la ruta de código THP se ingrese de manera inapropiada para el 'huge zero folio': CPU 0 CPU 1 =======================================|================================= shrink_huge_zero_folio_scan() | atomic_cmpxchg() establece refcount en 0 | xchg() establece huge_zero_folio en NULL | get_huge_zero_folio() | | atomic_inc_not_zero() -> cero 'preempted' por mucho tiempo | Asigna nuevo 'huge zero folio' | | Escribe 'huge_zero_folio' válido v | Escribe 'huge_zero_pfn' válido Sobrescribe huge_zero_pfn con ~0UL <- -- ¡Sobrescritura inválida! Esto resulta en que is_huge_zero_pfn() e is_huge_zero_pmd() devuelvan incorrectamente 'false' para una página de 'huge zero', lo que podría resultar en problemas como que el 'huge zero folio' sea dividido incorrectamente. Tenga en cuenta que el problema es con huge_zero_pfn, no con huge_zero_folio, ya que get_huge_zero_folio() usa cmpxchg() condicionado a que huge_zero_folio sea NULL con un bucle de reintento y shrink_huge_zero_folio_scan() usa xchg() para establecer huge_zero_folio. Corrige el problema introduciendo un 'spinlock', huge_zero_lock, para evitar la escritura concurrente de huge_zero_folio, huge_zero_pfn y huge_zero_refcount. Aquí se debe tener un cuidado significativo para asegurar la corrección:
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 16, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-74632', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-16T19:03:06.246851Z'}
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 27, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/74xxx/CVE-2026-74632.json">CVE-2026-74632</a>
    Added Reference https://git.kernel.org/stable/c/105d04edbec83010df5728f74d17fd9c108e7553
    Added Reference https://git.kernel.org/stable/c/33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb
    Added Reference https://git.kernel.org/stable/c/6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3
    Added Reference https://git.kernel.org/stable/c/9332b080ad57650d1dc582e54517f9fc78ef89cc
    Added Reference https://git.kernel.org/stable/c/9c0fd1802ce06d7709f0bae4edeb085288f28764
    Added Reference https://git.kernel.org/stable/c/ab7e4b407c7f58d1a003134eff3841f303d5ccc2
    Added Reference https://git.kernel.org/stable/c/b7041ba61c5da4e0b56f9be58cfb87d7689724e4
    Added Reference https://git.kernel.org/stable/c/f3a874a903053c53fb53ba287ea9eacda69c68e8
    Removed Reference https://git.kernel.org/stable/c/105d04edbec83010df5728f74d17fd9c108e7553
    Removed Reference https://git.kernel.org/stable/c/33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb
    Removed Reference https://git.kernel.org/stable/c/6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3
    Removed Reference https://git.kernel.org/stable/c/9332b080ad57650d1dc582e54517f9fc78ef89cc
    Removed Reference https://git.kernel.org/stable/c/ab7e4b407c7f58d1a003134eff3841f303d5ccc2
    Removed Reference https://git.kernel.org/stable/c/f3a874a903053c53fb53ba287ea9eacda69c68e8
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 25, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 23, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/9332b080ad57650d1dc582e54517f9fc78ef89cc
    Added Reference https://git.kernel.org/stable/c/f3a874a903053c53fb53ba287ea9eacda69c68e8
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '105d04edbec83010df5728f74d17fd9c108e7553', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': 'ab7e4b407c7f58d1a003134eff3841f303d5ccc2', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb', 'versionType': 'git'}, {'status': 'affected', 'version': 'fc1fbc5b017b6f5ef24a4a93f33cd022225e01c8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd092a0f19423d7e9e81182314a96ecd6a14f3b7', 'versionType': 'git'}, {'status': 'affected', 'version': '6527d8ef68c3ca3c455e38ae2a37cd7810caec73', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1daf8f862136894a4595770a44e4508808fb806', 'versionType': 'git'}, {'status': 'affected', 'version': '4.19.197', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.129', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.10.47', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.12.14', 'lessThan': '5.13', 'versionType': 'semver'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.104', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.45', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.9', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '9332b080ad57650d1dc582e54517f9fc78ef89cc', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': 'f3a874a903053c53fb53ba287ea9eacda69c68e8', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '105d04edbec83010df5728f74d17fd9c108e7553', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': 'ab7e4b407c7f58d1a003134eff3841f303d5ccc2', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb', 'versionType': 'git'}, {'status': 'affected', 'version': 'fc1fbc5b017b6f5ef24a4a93f33cd022225e01c8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd092a0f19423d7e9e81182314a96ecd6a14f3b7', 'versionType': 'git'}, {'status': 'affected', 'version': '6527d8ef68c3ca3c455e38ae2a37cd7810caec73', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1daf8f862136894a4595770a44e4508808fb806', 'versionType': 'git'}, {'status': 'affected', 'version': '4.19.197', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.129', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.10.47', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.12.14', 'lessThan': '5.13', 'versionType': 'semver'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.184', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.153', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.104', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.45', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.9', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 22, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '105d04edbec83010df5728f74d17fd9c108e7553', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': 'ab7e4b407c7f58d1a003134eff3841f303d5ccc2', 'versionType': 'git'}, {'status': 'affected', 'version': '3b77e8c8cde581dadab9a0f1543a347e24315f11', 'lessThan': '33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb', 'versionType': 'git'}, {'status': 'affected', 'version': 'fc1fbc5b017b6f5ef24a4a93f33cd022225e01c8', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd092a0f19423d7e9e81182314a96ecd6a14f3b7', 'versionType': 'git'}, {'status': 'affected', 'version': '6527d8ef68c3ca3c455e38ae2a37cd7810caec73', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1daf8f862136894a4595770a44e4508808fb806', 'versionType': 'git'}, {'status': 'affected', 'version': '4.19.197', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.129', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.10.47', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.12.14', 'lessThan': '5.13', 'versionType': 'semver'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.104', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.45', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.9', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['mm/huge_memory.c'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix huge_zero_pfn race Patch series "mm/huge_memory: fix huge_zero_pfn race", v2. There is a subtle race in the reference-counted huge_zero_folio implementation. The fast path atomic logic fails to account for the fact that the shrinker (which drops the final huge_zero_refcount pin) can overwrite huge_zero_pfn with the ~0UL sentinel value in shrink_huge_zero_folio_scan() after a racing get_huge_zero_folio() installed a valid value there. This results in huge_zero_folio being correctly set but huge_zero_pfn being set incorrectly and thus is_huge_zero_pfn() and consequently is_huge_zero_pmd() will misidentify the huge zero folio as being an ordinary THP folio. This can result in the huge zero folio being split and otherwise treated incorrectly. The solution to this is very subtle as there is an atomic fast path, and thus ordering in weakly ordered architectures has to be treated very carefully. The first commit fixes the issue by introducing a spinlock around huge_zero_[pfn, folio, refcount] write, with careful consideration paid to load/store ordering in the fast path. It is placed first and kept as small as possible so that it can be backported on its own. The second commit is a pure cleanup which reworks the CONFIG_PERSISTENT_HUGE_ZERO_FOLIO logic to better separate the persistent logic from the dynamically allocated one. This patch (of 2): If !CONFIG_PERSISTENT_HUGE_ZERO_FOLIO, the huge_zero_folio is refcounted by huge_zero_refcount and returned by mm_get_huge_zero_folio(). When the caller is done with the huge zero page, its reference count is decremented. Only a shrinker can set the reference count to zero. A race can unfortunately occur between a shrinker decrementing the reference count to zero and a concurrent page fault. This is because shrink_huge_zero_folio_scan() might, if very unlucky, be preempted between setting huge_zero_refcount to zero and writing an invalid value. During this time get_huge_zero_folio() could write to huge_zero_pfn before shrink_huge_zero_folio_scan() resumes. In this event the huge zero folio will be persistently misidentified causing the THP code path to be entered inappropriately for the huge zero folio: CPU 0 CPU 1 =======================================|================================= shrink_huge_zero_folio_scan() | atomic_cmpxchg() sets refcount to 0 | xchg() sets huge_zero_folio to NULL | get_huge_zero_folio() | | atomic_inc_not_zero() -> zero preempted for a long time | Allocate new huge zero folio | | Write valid huge_zero_folio v | Write valid huge_zero_pfn Overwrite huge_zero_pfn with ~0UL <--- Invalid overwrite! This results in is_huge_zero_pfn() and is_huge_zero_pmd() incorrectly returning false for a huge zero page which could result in issues like the huge zero folio being incorrectly split. Note that the issue is with huge_zero_pfn not huge_zero_folio, as get_huge_zero_folio() uses cmpxchg() gated on huge_zero_folio being NULL with a retry loop and shrink_huge_zero_folio_scan() uses xchg() to set huge_zero_folio. Fix the issue by introducing a spinlock, huge_zero_lock, to prevent concurrent write of huge_zero_folio, huge_zero_pfn and huge_zero_refcount. There needs to be significant care taken here to ensure correctness: The fast path in get_huge_zero_folio() uses atomic_inc_not_zero(), which is outside of the critical section, and means huge zero allocation is gated on zero huge_zero_refcount. The fast path doesn't use huge_zero_lock, so the critical section is irrelevant to it. So invariants are required - huge_zero_refcount MUST: * Only be set in the huge_zero_lock critical section to ensure serialisation of huge_zero_pfn, huge_zero_folio and ---truncated---
    Added Reference https://git.kernel.org/stable/c/105d04edbec83010df5728f74d17fd9c108e7553
    Added Reference https://git.kernel.org/stable/c/33192a26cddea7a7e4ca66e5c3eebd36fa8be2bb
    Added Reference https://git.kernel.org/stable/c/6024f6d0d9b9ca5138bfc4ac6f6e4bdf616e42b3
    Added Reference https://git.kernel.org/stable/c/ab7e4b407c7f58d1a003134eff3841f303d5ccc2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.