CVE-2021-47351
published high CVSS 3.1 · 7.8ubifs: Fix races between xattr_{set|get} and listxattr operations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 38dde03eb239605f428f3f1e4baa73d4933a4cc6 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 9558612cb829f2c022b788f55d6b8437d5234a82 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < c0756f75c22149d20fcb7d8409827cee905eb386 · 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < f4e3634a3b642225a530c292fdb1e8a4007507f5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.27 (affected) · 0 to < 2.6.27 (unaffected · semver) · 5.4.133 through 5.4.* (unaffected · semver) · 5.10.51 through 5.10.* (unaffected · semver) · 5.12.18 through 5.12.* (unaffected · semver) · 5.13.3 through 5.13.* (unaffected · semver) · 5.14 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 |
Description
In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix races between xattr_{set|get} and listxattr operations UBIFS may occur some problems with concurrent xattr_{set|get} and listxattr operations, such as assertion failure, memory corruption, stale xattr value[1]. Fix it by importing a new rw-lock in @ubifs_inode to serilize write operations on xattr, concurrent read operations are still effective, just like ext4. [1] https://lore.kernel.org/linux-mtd/[email protected]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is reached via local setxattr/getxattr/listxattr syscalls into UBIFS xattr handlers on a mounted filesystem, not via network packet processing or physical device attachment. AC:L - The attacker controls both sides of the race by running concurrent setxattr and listxattr threads against the same inode and can retry indefinitely until the size check is bypassed, so success does not depend on conditions outside attacker influence. PR:L - An unprivileged local user who can create or write a regular file on a mounted UBIFS volume can set user.* xattrs and list them; no root or init-namespace capabilities are required. UI:N - UBIFS is commonly already mounted as root or data storage on embedded, IoT, and similar devices; the attacker drives setxattr/listxattr from their own processes with no victim mount or open required. S:U - Impact is confined to the host kernel heap and UBIFS mount within the same OS security authority; this is not a VM escape, IOMMU bypass, or other cross-boundary scope change. C:H - Racing listxattr against setxattr causes an out-of-bounds write into the kernel kvmalloc list buffer, which is heap memory corruption that can be leveraged for arbitrary kernel memory disclosure. I:H - The overflow copies attacker-chosen xattr name bytes past the end of the kernel buffer, yielding a controlled heap write primitive suitable for corruption and privilege escalation. A:H - The same race triggers ubifs_assert failures (default remount-ro, optionally panic) and heap corruption that can oops/panic the kernel, denying availability of the system or filesystem.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 38dde03eb239605f428f3f1e4baa73d4933a4cc6 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < 9558612cb829f2c022b788f55d6b8437d5234a82 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < c0756f75c22149d20fcb7d8409827cee905eb386 (affected · git)1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d to < f4e3634a3b642225a530c292fdb1e8a4007507f5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.27 (affected)0 to < 2.6.27 (unaffected · semver)5.4.133 through 5.4.* (unaffected · semver)5.10.51 through 5.10.* (unaffected · semver)5.12.18 through 5.12.* (unaffected · semver)5.13.3 through 5.13.* (unaffected · semver)5.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6
- https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08
- https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82
- https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386
- https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5
Provider assertions
3Linux · cna
ubifs: Fix races between xattr_{set|get} and listxattr operations
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 07253255a2ae0edb39d306c922770a104f078831de671b7e84153b76444c5c3f
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record