# CVE-2021-47066: async\_xor: increase src\_offs when dropping destination page

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2024-02-29T22:37:39.917Z
- **Modified:** 2026-08-05T08:45:48.517Z

## Who should check

- Anyone running Linux \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< cab2e8e5997b592fdb7d02cf2387b4b8e3057174; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 29ffa50f33de824b5491f8239c88c4a0efdd03af; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< ceaf2966ab082bbc4d26516f97b3ca8a676e2af8
- Anyone running Linux 5.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

async\_xor: increase src\_offs when dropping destination page

Now we support sharing one page if PAGE\_SIZE is not equal stripe size. To
support this, it needs to support calculating xor value with different
offsets for each r5dev. One offset array is used to record those offsets.

In RMW mode, parity page is used as a source page. It sets
ASYNC\_TX\_XOR\_DROP\_DST before calculating xor value in ops\_run\_prexor5.
So it needs to add src\_list and src\_offs at the same time. Now it only
needs src\_list. So the xor value which is calculated is wrong. It can
cause data corruption problem.

I can reproduce this problem 100% on a POWER8 machine. The steps are:

  mdadm -CR /dev/md0 -l5 -n3 /dev/sdb1 /dev/sdc1 /dev/sdd1 --size=3G
  mkfs.xfs /dev/md0
  mount /dev/md0 /mnt/test
  mount: /mnt/test: mount(2) system call failed: Structure needs cleaning.

## Affected and fixed versions

- Linux: \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< cab2e8e5997b592fdb7d02cf2387b4b8e3057174; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 29ffa50f33de824b5491f8239c88c4a0efdd03af; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< ceaf2966ab082bbc4d26516f97b3ca8a676e2af8 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47066. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47066.md
Affected: Linux >= 29bcff787a2593b2126cfaff612c0b4e560022e9, < cab2e8e5997b592fdb7d02cf2387b4b8e3057174; >= 29bcff787a2593b2126cfaff612c0b4e560022e9, < 29ffa50f33de824b5491f8239c88c4a0efdd03af; >= 29bcff787a2593b2126cfaff612c0b4e560022e9, < 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18; >= 29bcff787a2593b2126cfaf…
Fixed in: Linux 29ffa50f33de824b5491f8239c88c4a0efdd03af, Linux 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47066 being exploited?

There is no confirmed exploitation: CVE-2021-47066 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47066?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47066?

Linux \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< cab2e8e5997b592fdb7d02cf2387b4b8e3057174; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 29ffa50f33de824b5491f8239c88c4a0efdd03af; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18; \>= 29bcff787a2593b2126cfaff612c0b4e560022e9, \< ceaf2966ab082bbc4d26516f97b3ca8a676e2af8; Linux 5.10.

### Is there a fix for CVE-2021-47066?

Yes. Fixed in Linux 29ffa50f33de824b5491f8239c88c4a0efdd03af, Linux 53f8208e11abd6dde9480dfcb97fecdb1bc2ac18. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47066?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/cab2e8e5997b592fdb7d02cf2387b4b8e3057174>
- patch: <https://git.kernel.org/stable/c/29ffa50f33de824b5491f8239c88c4a0efdd03af>
- patch: <https://git.kernel.org/stable/c/53f8208e11abd6dde9480dfcb97fecdb1bc2ac18>
- patch: <https://git.kernel.org/stable/c/ceaf2966ab082bbc4d26516f97b3ca8a676e2af8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47066>

HTML: <https://flawdb.com/CVE-2021-47066> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47066>
