CVE-2021-47351

ubifs: Fix races between xattr_{set|get} and listxattr operations

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.27 ≤ v < 5.10.512.6.27 ≤ v < 5.12.182.6.27 ≤ v < 5.13.32.6.27 ≤ v < 5.142.6.27 ≤ v < 5.4.1335.11 ≤ v < 5.12.185.13 ≤ v < 5.13.35.5 ≤ v < 5.10.511e51764a3c2ac05a23a22b2a95ddee4d9bffb16d2.6.27
Vendor states this is fixed in 38dde03eb239605f428f3f1e4baa73d4933a4cc6 (fixed)
Vendor states this is fixed in 7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08 (fixed)
Vendor states this is fixed in 9558612cb829f2c022b788f55d6b8437d5234a82 (fixed)
Vendor states this is fixed in c0756f75c22149d20fcb7d8409827cee905eb386 (fixed)
Vendor states this is fixed in f4e3634a3b642225a530c292fdb1e8a4007507f5 (fixed)
Vendor states this is fixed in 2.6.27 (unaffected)
Vendor states this is fixed in 5.10.51 (unaffected)
Vendor states this is fixed in 5.12.18 (unaffected)
Vendor states this is fixed in 5.13.3 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.133 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-617CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card