# CVE-2021-47430: x86/entry: Clear X86_FEATURE_SMAP when CONFIG_X86_SMAP=n

- Severity: Low 3.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-21T15:04:15.352Z
- Modified: 2026-06-17T04:17:27.190Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 3c73b81a9164d0c1b6379d6672d2772a9e95168e before f2447f6587b8ffe42ba04d14ce67d429a1163e5e; from 3c73b81a9164d0c1b6379d6672d2772a9e95168e before 4e9ec1c65da98c293f75d83755dfa5e03075a6d0; from 3c73b81a9164d0c1b6379d6672d2772a9e95168e before 3958b9c34c2729597e182cc606cc43942fd19f7c; 5.8 (not affected: before 5.8; from 5.10.73 up to 5.10.*; from 5.14.12 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 5.8.1 before 5.10.73; from 5.11 before 5.14.12; 5.8; 5.15

## References

- <https://git.kernel.org/stable/c/f2447f6587b8ffe42ba04d14ce67d429a1163e5e> (patch)
- <https://git.kernel.org/stable/c/4e9ec1c65da98c293f75d83755dfa5e03075a6d0> (patch)
- <https://git.kernel.org/stable/c/3958b9c34c2729597e182cc606cc43942fd19f7c> (patch)

## Sources

- CVE List: [CVE-2021-47430](https://www.cve.org/CVERecord?id=CVE-2021-47430), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47430](https://nvd.nist.gov/vuln/detail/CVE-2021-47430), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47430 · Whole record: https://cve.day/CVE-2021-47430.json · Rebuilt by cve.day 2026-11-25T22:58:08.853Z
