# CVE-2021-47351: ubifs: Fix races between xattr_{set|get} and listxattr operations

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-05-21T14:35:55.806Z
- Modified: 2026-08-05T08:47:23.774Z
- Weaknesses: CWE-617, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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/20200630130438.141649-1-houtao1@huawei.com

(As written by CVE List.)

## Affected

- Linux Linux: from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 38dde03eb239605f428f3f1e4baa73d4933a4cc6; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before 9558612cb829f2c022b788f55d6b8437d5234a82; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before c0756f75c22149d20fcb7d8409827cee905eb386; from 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d before f4e3634a3b642225a530c292fdb1e8a4007507f5; 2.6.27 (not affected: before 2.6.27; from 5.4.133 up to 5.4.*; from 5.10.51 up to 5.10.*; from 5.12.18 up to 5.12.*; from 5.13.3 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 2.6.27 before 5.4.133; from 5.5 before 5.10.51; from 5.11 before 5.12.18; from 5.13 before 5.13.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08> (patch)
- <https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6> (patch)
- <https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82> (patch)
- <https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386> (patch)
- <https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5> (patch)

## Sources

- CVE List: [CVE-2021-47351](https://www.cve.org/CVERecord?id=CVE-2021-47351), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47351](https://nvd.nist.gov/vuln/detail/CVE-2021-47351), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47351 · Whole record: https://cve.day/CVE-2021-47351.json · Rebuilt by cve.day 2026-11-25T22:58:08.811Z
