Vulnerability record
aio: fix NULL deref when a fault races ring truncation
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,…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources