CVE-2021-47229
PCI: aardvark: Fix kernel panic during PIO transfer
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 8c39d710363c14ecb09219332869707395d1d495, < 400e6b1860c8be61388d0b77814c53260f96e17a; >= 8c39d710363c14ecb09219332869707395d1d495, < b00a9aaa4be20ad6e3311fb78a485eae0899e89a; >= 8c39d710363c14ecb09219332869707395d1d495, < 4c90f90a91d75c3c73dd633827c90e8746d9f54d; >= 8c39d710363c14ecb09219332869707395d1d495, < 1a1dbc4473974867fe8c5f195c17b341c8e82867; >= 8c39d710363c14ecb09219332869707395d1d495, < 3d213a4ddf49a860be6e795482c17f87e0c82b2a; >= 8c39d710363c14ecb09219332869707395d1d495, < f18139966d072dab8e4398c95ce955a9742e04f7
- Anyone running Linux 4.8
Vulnerability facts
- Affected
- Linux >= 8c39d710363c14ecb09219332869707395d1d495, < 400e6b1860c8be61388d0b77814c53260f96e17a; >= 8c39d710363c14ecb09219332869707395d1d495, < b00a9aaa4be20ad6e3311fb78a485eae0899e89a; >= 8c39d710363c14ecb09219332869707395d1d495, < 4c90f90a91d75c3c73dd633827c90e8746d9f54d; >= 8c39d710363c14ecb09219332869707395d1d495, < 1a1dbc4473974867fe8c5f195c17b341c8e82867; >= 8c39d710363c14ecb09219332869707395d1d495, < 3d213a4ddf49a860be6e795482c17f87e0c82b2a; >= 8c39d710363c14ecb09219332869707395d1d495, < f18139966d072dab8e4398c95ce955a9742e04f7; Linux 4.8
- Fixed in
- Linux 400e6b1860c8be61388d0b77814c53260f96e17a, Linux 4c90f90a91d75c3c73dd633827c90e8746d9f54d, Linux 1a1dbc4473974867fe8c5f195c17b341c8e82867, Linux 3d213a4ddf49a860be6e795482c17f87e0c82b2a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: PCI: aardvark: Fix kernel panic during PIO transfer Trying to start a new PIO transfer by writing value 0 in PIO_START register when previous transfer has not yet completed (which is indicated by value 1 in PIO_START) causes an External Abort on CPU, which results in kernel panic: SError Interrupt on CPU0, code 0xbf000002 -- SError Kernel panic - not syncing: Asynchronous SError Interrupt To prevent kernel panic, it is required to reject a new PIO transfer when previous one has not finished yet. If previous PIO transfer is not finished yet, the kernel may issue a new PIO request only if the previous PIO transfer timed out. In the past the root cause of this issue was incorrectly identified (as it often happens during link retraining or after link down event) and special hack was implemented in Trusted Firmware to catch all SError events in EL3, to ignore errors with code 0xbf000002 and not forwarding any other errors to kernel and instead throw panic from EL3 Trusted Firmware handler. Links to discussion and patches about this issue: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=3c7dcdac5c50 https://lore.kernel.org/linux-pci/20190316161243.29517-1-repk@triplefau.lt/ https://lore.kernel.org/linux-pci/971be151d24312cc533989a64bd454b4@www.loen.fr/ https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/1541 But the real cause was the fact that during link retraining or after link down event the PIO transfer may take longer time, up to the 1.44s until it times out. This increased probability that a new PIO transfer would be issued by kernel while previous one has not finished yet. After applying this change into the kernel, it is possible to revert the mentioned TF-A hack and SError events do not have to be caught in TF-A EL3.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8c39d710363c14ecb09219332869707395d1d495, < 400e6b1860c8be61388d0b77814c53260f96e17a; >= 8c39d710363c14ecb09219332869707395d1d495, < b00a9aaa4be20ad6e3311fb78a485eae0899e89a; >= 8c39d710363c14ecb09219332869707395d1d495, < 4c90f90a91d75c3c73dd633827c90e8746d9f54d; >= 8c39d710363c14ecb09219332869707395d1d495, < 1a1dbc4473974867fe8c5f195c17b341c8e82867; >= 8c39d710363c14ecb09219332869707395d1d495, < 3d213a4ddf49a860be6e795482c17f87e0c82b2a; >= 8c39d710363c14ecb09219332869707395d1d495, < f18139966d072dab8e4398c95ce955a9742e04f7 | — | cvelist |
| Linux | 4.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47229. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47229.md Affected: Linux >= 8c39d710363c14ecb09219332869707395d1d495, < 400e6b1860c8be61388d0b77814c53260f96e17a; >= 8c39d710363c14ecb09219332869707395d1d495, < b00a9aaa4be20ad6e3311fb78a485eae0899e89a; >= 8c39d710363c14ecb09219332869707395d1d495, < 4c90f90a91d75c3c73dd633827c90e8746d9f54d; >= 8c39d710363c14ecb092193… Fixed in: Linux 400e6b1860c8be61388d0b77814c53260f96e17a, Linux 4c90f90a91d75c3c73dd633827c90e8746d9f54d, Linux 1a1dbc4473974867fe8c5f195c17b341c8e82867, Linux 3d213a4ddf49a860be6e795482c17f87e0c82b2a 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.
References
Patches
- https://git.kernel.org/stable/c/400e6b1860c8be61388d0b77814c53260f96e17a
- https://git.kernel.org/stable/c/b00a9aaa4be20ad6e3311fb78a485eae0899e89a
- https://git.kernel.org/stable/c/4c90f90a91d75c3c73dd633827c90e8746d9f54d
- https://git.kernel.org/stable/c/1a1dbc4473974867fe8c5f195c17b341c8e82867
- https://git.kernel.org/stable/c/3d213a4ddf49a860be6e795482c17f87e0c82b2a
- https://git.kernel.org/stable/c/f18139966d072dab8e4398c95ce955a9742e04f7
FAQ
Is CVE-2021-47229 being exploited?
There is no confirmed exploitation: CVE-2021-47229 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47229?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47229?
Linux >= 8c39d710363c14ecb09219332869707395d1d495, < 400e6b1860c8be61388d0b77814c53260f96e17a; >= 8c39d710363c14ecb09219332869707395d1d495, < b00a9aaa4be20ad6e3311fb78a485eae0899e89a; >= 8c39d710363c14ecb09219332869707395d1d495, < 4c90f90a91d75c3c73dd633827c90e8746d9f54d; >= 8c39d710363c14ecb09219332869707395d1d495, < 1a1dbc4473974867fe8c5f195c17b341c8e82867; >= 8c39d710363c14ecb09219332869707395d1d495, < 3d213a4ddf49a860be6e795482c17f87e0c82b2a; >= 8c39d710363c14ecb09219332869707395d1d495, < f18139966d072dab8e4398c95ce955a9742e04f7; Linux 4.8.
Is there a fix for CVE-2021-47229?
Yes. Fixed in Linux 400e6b1860c8be61388d0b77814c53260f96e17a, Linux 4c90f90a91d75c3c73dd633827c90e8746d9f54d, Linux 1a1dbc4473974867fe8c5f195c17b341c8e82867, Linux 3d213a4ddf49a860be6e795482c17f87e0c82b2a. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2021-47229?
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.