{"api_version":"1","generated_at":"2026-12-01T19:06:09+00:00","cve":"CVE-2026-99847","urls":{"html":"https://cve.report/CVE-2026-99847","api":"https://cve.report/api/cve/CVE-2026-99847.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99847","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99847"},"summary":{"title":"apparmor: don't revalidate inherited files under files->file_lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: don't revalidate inherited files under files->file_lock\n\naa_inherit_files() revalidates inherited files on exec using\niterate_fd(), which calls the callback with files->file_lock held,\nso the revalidation is done with IN_ATOMIC. However the unix socket\nmediation path can sleep: aa_unix_file_perm() drops a ref on the\npeer's path with path_put(), and unix_fs_perm() -> aa_path_perm()\nallocates a buffer with aa_get_buffer(false), resulting in\n\n  BUG: sleeping function called from invalid context at fs/dcache.c:1039\n  ...\n   dput.part.0+0x24/0x180\n   path_put+0x2c/0x60\n   aa_unix_file_perm+0x42a/0x17b0\n   aa_file_perm+0xcd3/0x1060\n   match_file+0x10b/0x190\n   iterate_fd+0xe6/0x280\n   aa_inherit_files+0x250/0x4f0\n\nOnly grab a ref on each file under iterate_fd(), and revalidate it\nafter the lock is dropped, so revalidation is done with no locks held\nand does not need to be atomic. Denied fds are still replaced with\n/dev/null, or closed if it can not be opened.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:18","updated_at":"2026-11-30 14:20:18"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852","name":"https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187","name":"https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917","name":"https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99847","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99847","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d8ea44f6090c087fe255d9512fb808574b4d88e8 a20f98ffe158ea5eeb9932a3badbce267cd04917 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b1aea2c1960771a276d7e68c7424168eccd0c3da 43aba2eeaa34e045bdd73abfe66c8bd3fed97852 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b1aea2c1960771a276d7e68c7424168eccd0c3da a913281f600157aa036b7c02afbb18a0ac115187 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d680472db98823d90fc91362910901e468269318 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.40 6.18.63 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1.5 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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":["security/apparmor/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a20f98ffe158ea5eeb9932a3badbce267cd04917","status":"affected","version":"d8ea44f6090c087fe255d9512fb808574b4d88e8","versionType":"git"},{"lessThan":"43aba2eeaa34e045bdd73abfe66c8bd3fed97852","status":"affected","version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","versionType":"git"},{"lessThan":"a913281f600157aa036b7c02afbb18a0ac115187","status":"affected","version":"b1aea2c1960771a276d7e68c7424168eccd0c3da","versionType":"git"},{"status":"affected","version":"d680472db98823d90fc91362910901e468269318","versionType":"git"},{"lessThan":"6.18.63","status":"affected","version":"6.18.40","versionType":"semver"},{"lessThan":"7.2","status":"affected","version":"7.1.5","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["security/apparmor/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.18.40","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: don't revalidate inherited files under files->file_lock\n\naa_inherit_files() revalidates inherited files on exec using\niterate_fd(), which calls the callback with files->file_lock held,\nso the revalidation is done with IN_ATOMIC. However the unix socket\nmediation path can sleep: aa_unix_file_perm() drops a ref on the\npeer's path with path_put(), and unix_fs_perm() -> aa_path_perm()\nallocates a buffer with aa_get_buffer(false), resulting in\n\n  BUG: sleeping function called from invalid context at fs/dcache.c:1039\n  ...\n   dput.part.0+0x24/0x180\n   path_put+0x2c/0x60\n   aa_unix_file_perm+0x42a/0x17b0\n   aa_file_perm+0xcd3/0x1060\n   match_file+0x10b/0x190\n   iterate_fd+0xe6/0x280\n   aa_inherit_files+0x250/0x4f0\n\nOnly grab a ref on each file under iterate_fd(), and revalidate it\nafter the lock is dropped, so revalidation is done with no locks held\nand does not need to be atomic. Denied fds are still replaced with\n/dev/null, or closed if it can not be opened."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:17:36.624Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a20f98ffe158ea5eeb9932a3badbce267cd04917"},{"url":"https://git.kernel.org/stable/c/43aba2eeaa34e045bdd73abfe66c8bd3fed97852"},{"url":"https://git.kernel.org/stable/c/a913281f600157aa036b7c02afbb18a0ac115187"}],"title":"apparmor: don't revalidate inherited files under files->file_lock","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99847","datePublished":"2026-11-30T13:17:36.624Z","dateReserved":"2026-09-25T10:25:14.437Z","dateUpdated":"2026-11-30T13:17:36.624Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:18","lastModifiedDate":"2026-11-30 14:20:18","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99847","Ordinal":"1","Title":"apparmor: don't revalidate inherited files under files->file_loc","CVE":"CVE-2026-99847","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99847","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: don't revalidate inherited files under files->file_lock\n\naa_inherit_files() revalidates inherited files on exec using\niterate_fd(), which calls the callback with files->file_lock held,\nso the revalidation is done with IN_ATOMIC. However the unix socket\nmediation path can sleep: aa_unix_file_perm() drops a ref on the\npeer's path with path_put(), and unix_fs_perm() -> aa_path_perm()\nallocates a buffer with aa_get_buffer(false), resulting in\n\n  BUG: sleeping function called from invalid context at fs/dcache.c:1039\n  ...\n   dput.part.0+0x24/0x180\n   path_put+0x2c/0x60\n   aa_unix_file_perm+0x42a/0x17b0\n   aa_file_perm+0xcd3/0x1060\n   match_file+0x10b/0x190\n   iterate_fd+0xe6/0x280\n   aa_inherit_files+0x250/0x4f0\n\nOnly grab a ref on each file under iterate_fd(), and revalidate it\nafter the lock is dropped, so revalidation is done with no locks held\nand does not need to be atomic. Denied fds are still replaced with\n/dev/null, or closed if it can not be opened.","Type":"Description","Title":"apparmor: don't revalidate inherited files under files->file_loc"}]}}}