{"api_version":"1","generated_at":"2026-11-20T07:29:59+00:00","cve":"CVE-2026-99732","urls":{"html":"https://cve.report/CVE-2026-99732","api":"https://cve.report/api/cve/CVE-2026-99732.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99732","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99732"},"summary":{"title":"mm/filemap: read mapping->a_ops->free_folio under i_lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/filemap: read mapping->a_ops->free_folio under i_lock\n\nmemory_failure() -> ... -> filemap_remove_folio() can read mapping->a_ops\nafter the inode has been freed. Once the folio is deleted from the\npagecache it no longer pins the mapping, so after i_lock is dropped\ne.g., a concurrent final iput() can evict and free the inode before\nfilemap_free_folio() looks up mapping->a_ops->free_folio.\n\nMost callers hold a reference on the inode, but not all.\n\nDocumentation/filesystems/vfs.rst explicitly states that ->free_folio()\nmust not assume the original address_space mapping still exists.\n\nFix it by loading ->free_folio while i_lock is still held, similar to\nwhat folio_unmap_invalidate() does.\n\nInline filemap_free_folio() into its remaining caller such that\ndelete_from_page_cache_batch() also just loads the callback before\ndropping the i_lock.\n\nThe bug was found by code inspection and has not been reproduced.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: get rid of filemap_free_folio() entirely; improve patch description ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:10","updated_at":"2026-11-20 06:18:10"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e","name":"https://git.kernel.org/stable/c/842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/dc24e273244e9d712257d5a6c20a32c7f5ca84e6","name":"https://git.kernel.org/stable/c/dc24e273244e9d712257d5a6c20a32c7f5ca84e6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99732","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99732","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 59c66c5f8c4fb823240d70553c1686ce4e4dd331 842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 59c66c5f8c4fb823240d70553c1686ce4e4dd331 dc24e273244e9d712257d5a6c20a32c7f5ca84e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/filemap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e","status":"affected","version":"59c66c5f8c4fb823240d70553c1686ce4e4dd331","versionType":"git"},{"lessThan":"dc24e273244e9d712257d5a6c20a32c7f5ca84e6","status":"affected","version":"59c66c5f8c4fb823240d70553c1686ce4e4dd331","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/filemap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.15"},{"lessThan":"4.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"4.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"4.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/filemap: read mapping->a_ops->free_folio under i_lock\n\nmemory_failure() -> ... -> filemap_remove_folio() can read mapping->a_ops\nafter the inode has been freed. Once the folio is deleted from the\npagecache it no longer pins the mapping, so after i_lock is dropped\ne.g., a concurrent final iput() can evict and free the inode before\nfilemap_free_folio() looks up mapping->a_ops->free_folio.\n\nMost callers hold a reference on the inode, but not all.\n\nDocumentation/filesystems/vfs.rst explicitly states that ->free_folio()\nmust not assume the original address_space mapping still exists.\n\nFix it by loading ->free_folio while i_lock is still held, similar to\nwhat folio_unmap_invalidate() does.\n\nInline filemap_free_folio() into its remaining caller such that\ndelete_from_page_cache_batch() also just loads the callback before\ndropping the i_lock.\n\nThe bug was found by code inspection and has not been reproduced.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: get rid of filemap_free_folio() entirely; improve patch description ]"}],"providerMetadata":{"dateUpdated":"2026-11-20T05:51:06.788Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/842bfdb63ff2f9fcc3edc7ae6a33dfae3747a56e"},{"url":"https://git.kernel.org/stable/c/dc24e273244e9d712257d5a6c20a32c7f5ca84e6"}],"title":"mm/filemap: read mapping->a_ops->free_folio under i_lock","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99732","datePublished":"2026-11-20T05:51:06.788Z","dateReserved":"2026-09-25T10:25:14.431Z","dateUpdated":"2026-11-20T05:51:06.788Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:10","lastModifiedDate":"2026-11-20 06:18:10","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99732","Ordinal":"1","Title":"mm/filemap: read mapping->a_ops->free_folio under i_lock","CVE":"CVE-2026-99732","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99732","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/filemap: read mapping->a_ops->free_folio under i_lock\n\nmemory_failure() -> ... -> filemap_remove_folio() can read mapping->a_ops\nafter the inode has been freed. Once the folio is deleted from the\npagecache it no longer pins the mapping, so after i_lock is dropped\ne.g., a concurrent final iput() can evict and free the inode before\nfilemap_free_folio() looks up mapping->a_ops->free_folio.\n\nMost callers hold a reference on the inode, but not all.\n\nDocumentation/filesystems/vfs.rst explicitly states that ->free_folio()\nmust not assume the original address_space mapping still exists.\n\nFix it by loading ->free_folio while i_lock is still held, similar to\nwhat folio_unmap_invalidate() does.\n\nInline filemap_free_folio() into its remaining caller such that\ndelete_from_page_cache_batch() also just loads the callback before\ndropping the i_lock.\n\nThe bug was found by code inspection and has not been reproduced.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: get rid of filemap_free_folio() entirely; improve patch description ]","Type":"Description","Title":"mm/filemap: read mapping->a_ops->free_folio under i_lock"}]}}}