CVE-2026-98543
published high CVSS 3.1 · 7.3bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux56467292794b800164df20c076c409ac548e56ec to < 7504b677c4370c9e4b153c553ff8831c093b1ff6 · 56467292794b800164df20c076c409ac548e56ec to < 640d37fbd34d03af727dbc567f48c0203d1de6b4 · 56467292794b800164df20c076c409ac548e56ec to < 35d442ed1f86465e49df3119fb898f985186db13 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.18.55 through 6.18.* (unaffected · semver) · 7.2.9 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3251 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | noble | linux-aws-7.0 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-aws-7.0-cloud-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-aws-7.0-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-aws-7.0-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-7.0 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-cloud-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-headers-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-7.0-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-azure-fde-7.0 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-cloud-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-headers-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-azure-fde-7.0-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-42-generic-64k | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-gcp-7.0 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-gcp-7.0-headers-7.0.0-1017 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-gcp-7.0-tools-7.0.0-1017 | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-headers-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-headers-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-headers-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-headers-7.0.0-42-generic-64k | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-hwe-7.0 | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-hwe-7.0-cloud-tools-7.0.0-42 | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-hwe-7.0-headers-7.0.0-42 | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-hwe-7.0-tools-7.0.0-42 | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-image-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-42-generic-64k | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-lib-rust-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-modules-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-modules-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-modules-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-modules-7.0.0-42-generic-64k | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-oracle-7.0 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-oracle-7.0-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-oracle-7.0-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-oracle | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-oracle-64k | Advisory build | 7.0.0-1016.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-aws | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-aws-64k | Advisory build | 7.0.0-1017.18~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-gcp | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1017-gcp-64k | Advisory build | 7.0.0-1017.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1019-azure-fde | Advisory build | 7.0.0-1019.19~24.04.1 | USN-9020-1 |
| Ubuntu | noble | linux-tools-7.0.0-1020-azure | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-tools-7.0.0-1020-azure-64k | Advisory build | 7.0.0-1020.21~24.04.2 | USN-9160-1 |
| Ubuntu | noble | linux-tools-7.0.0-42-generic | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | noble | linux-tools-7.0.0-42-generic-64k | Advisory build | 7.0.0-42.42~24.04.1 | USN-8959-1 |
| Ubuntu | resolute | bpftool | Advisory build | 7.7.0+7.0.0-42.42 | USN-8959-1 |
| Ubuntu | resolute | linux | Advisory build | 7.0.0-42.42 | USN-8959-1 |
| Ubuntu | resolute | linux-aws | Advisory build | 7.0.0-1016.17 | USN-8959-1 |
| Ubuntu | resolute | linux-aws-cloud-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.17 | USN-8959-1 |
| Ubuntu | resolute | linux-aws-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.17 | USN-8959-1 |
| Ubuntu | resolute | linux-aws-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.17 | USN-8959-1 |
| Ubuntu | resolute | linux-azure | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
| Ubuntu | resolute | linux-azure-cloud-tools-7.0.0-1020 | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
| Ubuntu | resolute | linux-azure-fde | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-cloud-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-headers-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-fde-tools-7.0.0-1019 | Advisory build | 7.0.0-1019.19 | USN-9020-1 |
| Ubuntu | resolute | linux-azure-headers-7.0.0-1020 | Advisory build | 7.0.0-1020.21 | USN-9019-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir bpf_lsm_has_d_inode_locked() makes the verifier rewrite bpf_[set|remove]_dentry_xattr() to the _locked variants, which assume that the caller already holds the inode's i_rwsem. The path_unlink and path_rmdir hooks are listed, but security_path_unlink() and security_path_rmdir() run before vfs_unlink()/vfs_rmdir() take the victim inode's i_rwsem, so a sleepable BPF LSM program attached to either hook mutates the victim's xattrs without the lock held. Drop the two path hooks from d_inode_locked_hooks so that the verifier keeps the locking bpf_[set|remove]_dentry_xattr() variants, which take the lock themselves.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
- Scenarios
- en: AV:L - unlink(2)/unlinkat(2)/rmdir(2) reach filename_unlinkat()/filename_rmdir() -> security_path_unlink()/security_path_rmdir() -> bpf_lsm_path_*(); vulnerable bpf_lsm_has_d_inode_locked() classification makes the verifier redirect bpf_[set|remove]_dentry_xattr() to _locked functions. The trigger enters locally, not via a protocol. AC:L - On UBIFS, one invocation deterministically fails ubifs_xattr_set()/ubifs_xattr_remove()'s inode_is_locked() assertion; for races, the attacker can unlink two hardlinks in different parents concurrently, so separate parent locks do not serialize the same victim. No condition is outside the attacker's control. PR:L - bpf_prog_load() gates BPF_PROG_TYPE_LSM on bpf_token_capable(CAP_BPF) and CAP_PERFMON. A delegated bpffs token makes those ns_capable(token->userns, ...) checks, so a namespace-confined non-admin can load and attach the sleepable path hook; without delegation, init-namespace capabilities are required. UI:N - The attacker loads and attaches the BPF LSM program, then invokes unlinkat(2) or rmdir(2) on an object it can modify; no victim must mount media, open a file, or perform another action. S:C - With bpffs token delegation, a task confined to the token's user namespace can run the faulty BPF LSM program in the host kernel and force a shared host UBIFS read-only, crossing the container or sandbox availability boundary. C:N - Neither affected helper returns filesystem or kernel data: bpf_set_dentry_xattr_locked() only passes a verifier-bounded dynptr to __vfs_setxattr(), and the remove helper has no output. The missing i_rwsem is a mutation-ordering flaw, with no demonstrated OOB read, UAF, or disclosure path. I:L - btrfs_setxattr() explicitly relies on the inode lock to exclude a concurrent delete between its XATTR_REPLACE lookup and insert; this bug removes that exclusion, so concurrent path_unlink hooks can recreate or lose security.bpf.* metadata. Btrfs tree locking shows no arbitrary-memory-write primitive, limiting integrity impact. A:H - ubifs_xattr_set(..., check_lock=true) and ubifs_xattr_remove() assert inode_is_locked(); default ASSACT_RO calls ubifs_ro_mode(), sets SB_RDONLY, and denies later writes. One path hook calling the mis-selected _locked helper can therefore make a mounted UBIFS lose write availability.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 56467292794b800164df20c076c409ac548e56ec to < 7504b677c4370c9e4b153c553ff8831c093b1ff6 (affected · git)56467292794b800164df20c076c409ac548e56ec to < 640d37fbd34d03af727dbc567f48c0203d1de6b4 (affected · git)56467292794b800164df20c076c409ac548e56ec to < 35d442ed1f86465e49df3119fb898f985186db13 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.15 (affected)0 to < 6.15 (unaffected · semver)6.18.55 through 6.18.* (unaffected · semver)7.2.9 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 635bb734daa2064ca0ffde084c153fd33e7c6ae1883644e816b2481cd8a117f8
- Ingested
- 24 Oct 2026, 14:14:52 UTC
- Source record
- Official CVE record