# CVE-2026-74343: kernfs: fix xattr race condition with multiple superblocks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-26)
- **Published:** 2026-08-15T05:58:32.577Z
- **Modified:** 2026-08-17T06:19:28.850Z

## Who should check

- Anyone running Linux \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< bf53db51359939755084d08156684ed649489592; \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< 6a07814ff643b5c8e1353d8c6229f52fde205cde
- Anyone running Linux 7.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

kernfs: fix xattr race condition with multiple superblocks

Multiple superblocks with different namespaces can share the same
kernfs\_node when kernfs\_test\_super() finds a matching root but
different namespace. This means multiple inodes from different
superblocks can reference the same kernfs\_node-\>iattr-\>xattrs
structure.

The VFS layer only holds per-inode locks during xattr operations,
which is insufficient to serialize concurrent xattr modifications on
the shared kernfs\_node. This can lead to race conditions in
simple\_xattr\_set() where the lookup-\>replace/remove sequence is not
atomic with respect to operations from other superblocks.

Fix this by protecting xattr operations with the existing hashed
kernfs\_locks-\>open\_file\_mutex\[\] array, which is already used to
protect per-node open file data. The hashed mutex array provides
scalable per-node serialization (scaled by CPU count, up to 1024 locks
on 32+ CPU systems) with zero memory overhead.

Changes:
- Rename open\_file\_mutex\[\] to node\_mutex\[\] to reflect dual purpose
- Add kernfs\_node\_lock\_ptr() and kernfs\_node\_lock() helpers
- Protect simple\_xattr\_set() calls in kernfs\_xattr\_set() and
  kernfs\_vfs\_user\_xattr\_set() with the hashed mutex
- Update file.c to use new helpers via compatibility wrappers
- Update documentation to explain the extended lock usage

## Affected and fixed versions

- Linux: \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< bf53db51359939755084d08156684ed649489592; \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< 6a07814ff643b5c8e1353d8c6229f52fde205cde (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 6a07814ff643b5c8e1353d8c6229f52fde205cde or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74343. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74343.md
Affected: Linux >= b32c4a213698ab351b44da2fd1b2a5976c7fa033, < bf53db51359939755084d08156684ed649489592; >= b32c4a213698ab351b44da2fd1b2a5976c7fa033, < 6a07814ff643b5c8e1353d8c6229f52fde205cde; Linux 7.1
Fixed in: Linux 6a07814ff643b5c8e1353d8c6229f52fde205cde

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74343 being exploited?

There is no confirmed exploitation: CVE-2026-74343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74343?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-74343?

Linux \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< bf53db51359939755084d08156684ed649489592; \>= b32c4a213698ab351b44da2fd1b2a5976c7fa033, \< 6a07814ff643b5c8e1353d8c6229f52fde205cde; Linux 7.1.

### Is there a fix for CVE-2026-74343?

Yes. Fixed in Linux 6a07814ff643b5c8e1353d8c6229f52fde205cde. Upgrade Linux to 6a07814ff643b5c8e1353d8c6229f52fde205cde or later.

### How do I check if I'm affected by CVE-2026-74343?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/bf53db51359939755084d08156684ed649489592>
- other: <https://git.kernel.org/stable/c/6a07814ff643b5c8e1353d8c6229f52fde205cde>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74343>

HTML: <https://flawdb.com/CVE-2026-74343> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74343>
