CVE-2026-74343

Source
https://cve.org/CVERecord?id=CVE-2026-74343
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74343.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-74343
Downstream
Published
2026-08-15T05:58:32.577Z
Modified
2026-08-18T03:56:56.943918178Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
kernfs: fix xattr race condition with multiple superblocks
Details

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 kernfsnode when kernfstestsuper() finds a matching root but different namespace. This means multiple inodes from different superblocks can reference the same kernfsnode->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 kernfsnode. This can lead to race conditions in simplexattr_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 kernfslocks->openfile_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 openfilemutex[] to nodemutex[] to reflect dual purpose - Add kernfsnodelockptr() and kernfsnodelock() helpers - Protect simplexattrset() calls in kernfsxattrset() and kernfsvfsuserxattrset() with the hashed mutex - Update file.c to use new helpers via compatibility wrappers - Update documentation to explain the extended lock usage

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74343.json"
}
References

Affected packages

Git / 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
b32c4a213698ab351b44da2fd1b2a5976c7fa033
Fixed
bf53db51359939755084d08156684ed649489592
Fixed
6a07814ff643b5c8e1353d8c6229f52fde205cde

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74343.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74343.json"