* CVE-2026-99740: mm/shmem: stop retrying folios that cannot be split
@ 2026-11-20 5:52 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-20 5:52 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mm/shmem: stop retrying folios that cannot be split
A fault or collapse can insert a large folio crossing EOF after
shmem_undo_range() has handled the boundary folios. If splitting that
folio fails, truncate_inode_partial_folio() retains it when it is dirty.
The final scan then repeatedly finds it because it restarts from an
unchanged start.
Truncation keeps the inode lock and ignores fatal signals while looping.
A concurrent unlink() can then block other directory operations while
holding the directory lock and waiting for the file's lock.
Advance start past the retained folio, whose truncated part has already
been zeroed. Do not move start backwards if the failed split has shrunk
the folio.
Fix generated by an LLM and sent by Chris Mason in private.
[ david: split fixes, simplify descriptions, adjust comments ]
The Linux kernel CVE team has assigned CVE-2026-99740 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 and fixed in 6.12.118 with commit dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12
Issue introduced in 6.7 with commit 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 and fixed in 6.18.64 with commit 1360e0f9a188cfede01d0df81119d925bbfff165
Issue introduced in 6.7 with commit 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 and fixed in 7.3.5 with commit b3239a5a37bba078d83cfb864d47a0cc122f17cd
Issue introduced in 6.7 with commit 55ac8bbe358bdd2f3c044c12f249fd22d48fe015 and fixed in 7.4-rc2 with commit a842a1f947da8a7020e72f885ffbf2ce6a93685f
Issue introduced in 6.1.69 with commit da9b7c651c6517c2de1099136ed87c0c24f864dd
Issue introduced in 6.6.8 with commit 7a4ae7acd20805940307be98b304871a43288a01
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99740
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
mm/shmem.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/dfedff4a9f0abcd985dcdfbd721dcd9374d6ff12
https://git.kernel.org/stable/c/1360e0f9a188cfede01d0df81119d925bbfff165
https://git.kernel.org/stable/c/b3239a5a37bba078d83cfb864d47a0cc122f17cd
https://git.kernel.org/stable/c/a842a1f947da8a7020e72f885ffbf2ce6a93685f
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 5:52 CVE-2026-99740: mm/shmem: stop retrying folios that cannot be split Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.