CVE-2021-47227
publishedx86/fpu: Prevent state corruption in __fpu__restore_sig()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < 076f732b16a5bf842686e1b43ab6021a2d98233e · b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < ec25ea1f3f05d6f8ee51d1277efea986eafd4f2a · b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < 484cea4f362e1eeb5c869abbfb5f90eae6421b38 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.46 through 5.10.* (unaffected · semver) · 5.12.13 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
Show 69 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kbaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kb-develaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseppc64le | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-devels390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-develnoarch | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-docsnoarch | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_164-defaultppc64le | Advisory build | 1-150300.7.3.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_164-defaults390x | Advisory build | 1-150300.7.3.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_164-defaultx86_64 | Advisory build | 1-150300.7.3.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-macrosnoarch | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-builds390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preemptx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preempt-develaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-preempt-develx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-sourcenoarch | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symss390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-symsx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-zfcpdumps390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | ocfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-15-SP3 | reiserfs-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.164.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.164.1.150300.18.96.1 | SUSE-SU-2024:2185-1 |
| SUSE / openSUSE | SLE-5 | kernel-rtx86_64 | Advisory build | 5.3.18-150300.172.1 | SUSE-SU-2024:2010-1 |
| SUSE / openSUSE | SLE-5 | kernel-source-rtnoarch | Advisory build | 5.3.18-150300.172.1 | SUSE-SU-2024:2010-1 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2022-002 |
Description
In the Linux kernel, the following vulnerability has been resolved: x86/fpu: Prevent state corruption in __fpu__restore_sig() The non-compacted slowpath uses __copy_from_user() and copies the entire user buffer into the kernel buffer, verbatim. This means that the kernel buffer may now contain entirely invalid state on which XRSTOR will #GP. validate_user_xstate_header() can detect some of that corruption, but that leaves the onus on callers to clear the buffer. Prior to XSAVES support, it was possible just to reinitialize the buffer, completely, but with supervisor states that is not longer possible as the buffer clearing code split got it backwards. Fixing that is possible but not corrupting the state in the first place is more robust. Avoid corruption of the kernel XSAVE buffer by using copy_user_to_xstate() which validates the XSAVE header contents before copying the actual states to the kernel. copy_user_to_xstate() was previously only called for compacted-format kernel buffers, but it works for both compacted and non-compacted forms. Using it for the non-compacted form is slower because of multiple __copy_from_user() operations, but that cost is less important than robust code in an already slow path. [ Changelog polished by Dave Hansen ]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < 076f732b16a5bf842686e1b43ab6021a2d98233e (affected · git)b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < ec25ea1f3f05d6f8ee51d1277efea986eafd4f2a (affected · git)b860eb8dce5906b14e3a7f3c771e0b3d6ef61b94 to < 484cea4f362e1eeb5c869abbfb5f90eae6421b38 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.46 through 5.10.* (unaffected · semver)5.12.13 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
x86/fpu: Prevent state corruption in __fpu__restore_sig()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0657a26c139caacbc5d31e0e8197b444bddd6720308b7cd3e130ed7e62c9deb2
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record