# CVE-2021-47430: x86/entry: Clear X86\_FEATURE\_SMAP when CONFIG\_X86\_SMAP=n

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

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **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.30% (percentile 15, 2026-11-26)
- **Published:** 2024-05-21T15:04:15.352Z
- **Modified:** 2026-06-17T04:17:27.190Z

## Who should check

- Anyone running Linux \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< f2447f6587b8ffe42ba04d14ce67d429a1163e5e; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 4e9ec1c65da98c293f75d83755dfa5e03075a6d0; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 3958b9c34c2729597e182cc606cc43942fd19f7c
- Anyone running Linux 5.8

## Description

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

x86/entry: Clear X86\_FEATURE\_SMAP when CONFIG\_X86\_SMAP=n

Commit

  3c73b81a9164 ("x86/entry, selftests: Further improve user entry sanity checks")

added a warning if AC is set when in the kernel.

Commit

  662a0221893a3d ("x86/entry: Fix AC assertion")

changed the warning to only fire if the CPU supports SMAP.

However, the warning can still trigger on a machine that supports SMAP
but where it's disabled in the kernel config and when running the
syscall\_nt selftest, for example:

  ------------\[ cut here \]------------
  WARNING: CPU: 0 PID: 49 at irqentry\_enter\_from\_user\_mode
  CPU: 0 PID: 49 Comm: init Tainted: G                T 5.15.0-rc4+ \#98 e6202628ee053b4f310759978284bd8bb0ce6905
  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014
  RIP: 0010:irqentry\_enter\_from\_user\_mode
  ...
  Call Trace:
   ? irqentry\_enter
   ? exc\_general\_protection
   ? asm\_exc\_general\_protection
   ? asm\_exc\_general\_protectio

IS\_ENABLED(CONFIG\_X86\_SMAP) could be added to the warning condition, but
even this would not be enough in case SMAP is disabled at boot time with
the "nosmap" parameter.

To be consistent with "nosmap" behaviour, clear X86\_FEATURE\_SMAP when
!CONFIG\_X86\_SMAP.

Found using entry-fuzz + satrandconfig.

 \[ bp: Massage commit message. \]

## Affected and fixed versions

- Linux: \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< f2447f6587b8ffe42ba04d14ce67d429a1163e5e; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 4e9ec1c65da98c293f75d83755dfa5e03075a6d0; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 3958b9c34c2729597e182cc606cc43942fd19f7c (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 3958b9c34c2729597e182cc606cc43942fd19f7c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47430.md
Affected: Linux >= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, < f2447f6587b8ffe42ba04d14ce67d429a1163e5e; >= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, < 4e9ec1c65da98c293f75d83755dfa5e03075a6d0; >= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, < 3958b9c34c2729597e182cc606cc43942fd19f7c; Linux 5.8
Fixed in: Linux 4e9ec1c65da98c293f75d83755dfa5e03075a6d0, Linux 3958b9c34c2729597e182cc606cc43942fd19f7c

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-47430 being exploited?

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

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

Low: CVSS 3.3 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< f2447f6587b8ffe42ba04d14ce67d429a1163e5e; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 4e9ec1c65da98c293f75d83755dfa5e03075a6d0; \>= 3c73b81a9164d0c1b6379d6672d2772a9e95168e, \< 3958b9c34c2729597e182cc606cc43942fd19f7c; Linux 5.8.

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

Yes. Fixed in Linux 4e9ec1c65da98c293f75d83755dfa5e03075a6d0, Linux 3958b9c34c2729597e182cc606cc43942fd19f7c. Upgrade Linux to 3958b9c34c2729597e182cc606cc43942fd19f7c or later.

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

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/f2447f6587b8ffe42ba04d14ce67d429a1163e5e>
- patch: <https://git.kernel.org/stable/c/4e9ec1c65da98c293f75d83755dfa5e03075a6d0>
- patch: <https://git.kernel.org/stable/c/3958b9c34c2729597e182cc606cc43942fd19f7c>

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

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