audit: avoid dropping live tree ref on fsnotify rule autoremove
In the Linux kernel, the following vulnerability has been resolved: audit: avoid dropping live tree ref on fsnotify rule autoremove audit_del_rule() is used for both netlink deletion templates and internal fsnotify autoremove. The former passes a parsed template which owns a temporary tree reference; the latter passes the installed entry itself. The unconditional audit_put_tree() at the end of audit_del_rule() assumes the template case. For mixed AUDIT_DIR plus AUDIT_EXE rules, an fsnotify autoremove event therefore drops the installed rule's live tree reference. Repeating this across rules sharing the same tree can free the tree while another rule still references it, and a later autoremove dereferences the freed pathname while comparing rules. Move the temporary-tree put to audit_rule_change(), the caller that owns deletion templates. Keep it in the AUDIT_DEL_RULE cleanup so both successful deletion and -ENOENT still release the parser-owned tree. [PM: dropped unnecessary comment for line length reasons]
CVE-2026-89643
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89643
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "9cac21f8eb82675ed19fb955b8bbb9dd14cc3d58",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "b322cc7adcd2e6ec1594d187533a126506ab545c",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "695c85dc345a4e0292739f004c261bedef3f27e6",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "01b0ec8c397be65ff710777c97017ca1de56ef8e",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "cf37b61b5420fd4600fe78cf8c24da6e4d9bfe28",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "636a99bab36ba27515363d325866c0273ac83b3e",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "583cf579b32d99e3fe4e9c8ecc4d852e3708fbec",
"versionType": "git"
},
{
"status": "affected",
"version": "34d99af52ad40bd498ba66970579a5bc1fb1a3bc",
"lessThan": "783f0f0974c156aca630f4ffff248671082a098d",
"versionType": "git"
}
],
"programFiles": [
"kernel/auditfilter.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4.3"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "4.3",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.270",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.109",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"kernel/auditfilter.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89643
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #35142 · Revision 1
- Added to Heist Feed
- Publisher date