PT-2026-162796
CVE-2026-99829
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
aio: fix NULL deref when a fault races ring truncation
The aio ring lives in a file on the aio pseudo filesystem and the ring
VMA uses filemap fault(). aio ctx aops doesn't have a ->read folio
because aio setup ring() puts all folios of the ring into the page
cache. So a fault on the ring only works as long as it finds its folio
in the page cache. If it doesn't, filemap fault() calls ->read folio
without checking and we jump to NULL.
We already fixed this twice this year. A forked child could inherit the
ring mapping, fixed by commit c03ce4173c7b ("fs: aio: set
VMA DONTCOPY BIT in mmap to fix NULL-pointer-dereference error"). And a
partial mremap() could leave part of the ring mapped, fixed by
commit 3adf7ae18bf4 ("fs: aio: reject partial mremap to avoid
Null-pointer-dereference error"). Both times a VMA outlived the ring and
the ring file was truncated under it.
There's a third way to get there. kill ioctx() and the error path of
ioctx alloc() unmap the ring with vm munmap() and ignore the return
value. If vm munmap() has to wait for mmap lock and a fatal signal is
pending it returns -EINTR and the VMA stays. free ioctx() then calls
put aio ring file() which truncates the ring file to zero. A fault that
passed the i size check in filemap fault() before that doesn't find its
folio anymore, allocates a new one and calls ->read folio:
fault on the ring io destroy() with SIGKILL pending
================= =================================
vm munmap() returns -EINTR
filemap fault()
i size check passes
free ioctx()
put aio ring file()
truncate setsize(inode, 0)
no folio, allocate a new one
filemap read folio()
->read folio == NULL
All that's needed is a second process that shares the mm. If a CLONE VM
child calls io destroy() and gets SIGKILLed while it waits for mmap lock
the ring stays mapped for the threads of the parent. Any user can do
that.
Instead of plugging the routes one by one give the ring a ->read folio
that unlocks the folio and returns -EIO. All folios of a live ring are
in the page cache so a fault can only end up there if the ring was
truncated. The fault now gets SIGBUS. Nothing else reads the ring file
and the aio filesystem uses noop backing dev info so there's no
readahead either.
Making vm munmap() unkillable in those two places would only close this
one route and bring back what commit ae7987835643 ("mm: make vm munmap
killable") fixed.
Found an issue in the description? Have something to add? Feel free to write us 👾