{"id":"CVE-2026-89643","summary":"audit: avoid dropping live tree ref on fsnotify rule autoremove","details":"In the Linux kernel, the following vulnerability has been resolved:\n\naudit: avoid dropping live tree ref on fsnotify rule autoremove\n\naudit_del_rule() is used for both netlink deletion templates and internal\nfsnotify autoremove.  The former passes a parsed template which owns a\ntemporary tree reference; the latter passes the installed entry itself.\n\nThe unconditional audit_put_tree() at the end of audit_del_rule() assumes\nthe template case.  For mixed AUDIT_DIR plus AUDIT_EXE rules, an fsnotify\nautoremove event therefore drops the installed rule's live tree reference.\nRepeating this across rules sharing the same tree can free the tree while\nanother rule still references it, and a later autoremove dereferences the\nfreed pathname while comparing rules.\n\nMove the temporary-tree put to audit_rule_change(), the caller that owns\ndeletion templates.  Keep it in the AUDIT_DEL_RULE cleanup so both\nsuccessful deletion and -ENOENT still release the parser-owned tree.\n\n[PM: dropped unnecessary comment for line length reasons]","modified":"2026-09-25T18:26:48.745485851Z","published":"2026-09-11T19:45:35.523Z","related":["openSUSE-SU-2026:11880-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89643.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01b0ec8c397be65ff710777c97017ca1de56ef8e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/583cf579b32d99e3fe4e9c8ecc4d852e3708fbec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/636a99bab36ba27515363d325866c0273ac83b3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/695c85dc345a4e0292739f004c261bedef3f27e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/783f0f0974c156aca630f4ffff248671082a098d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9cac21f8eb82675ed19fb955b8bbb9dd14cc3d58"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b322cc7adcd2e6ec1594d187533a126506ab545c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf37b61b5420fd4600fe78cf8c24da6e4d9bfe28"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89643.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89643"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"34d99af52ad40bd498ba66970579a5bc1fb1a3bc"},{"fixed":"9cac21f8eb82675ed19fb955b8bbb9dd14cc3d58"},{"fixed":"b322cc7adcd2e6ec1594d187533a126506ab545c"},{"fixed":"695c85dc345a4e0292739f004c261bedef3f27e6"},{"fixed":"01b0ec8c397be65ff710777c97017ca1de56ef8e"},{"fixed":"cf37b61b5420fd4600fe78cf8c24da6e4d9bfe28"},{"fixed":"636a99bab36ba27515363d325866c0273ac83b3e"},{"fixed":"583cf579b32d99e3fe4e9c8ecc4d852e3708fbec"},{"fixed":"783f0f0974c156aca630f4ffff248671082a098d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-89643.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-89643.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}