CVE-2021-47430x86/entry: Clear X86_FEATURE_SMAP when CONFIG_X86_SMAP=n
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. ]
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | linux | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-aws | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-azure-fde | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gke | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-ibm | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-intel | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-nvidia | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-nvidia-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-oem-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-raspi | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | linux-riscv | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-allwinner-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-aws | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-aws-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-aws-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-aws-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-azure-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-azure-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure-fde | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-azure-fde-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-azure-fde-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-gcp | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gcp-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-gcp-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-gcp-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gke | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-hwe-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-hwe-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-hwe-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-ibm | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-intel-iotg | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-kvm | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-lowlatency | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-lowlatency-hwe-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-lowlatency-hwe-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-lowlatency-hwe-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-nvidia-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-nvidia-6.8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-oem-5.17 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-oem-6.0 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-oem-6.1 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-oem-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-oracle | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-oracle-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-raspi | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-riscv | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-riscv-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-riscv-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-starfive-5.19 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-starfive-6.2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 22.04 | linux-starfive-6.5 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | linux-xilinx-zynqmp | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-aws-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-aws-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-aws-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-azure-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-azure-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-azure-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-azure-fde | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gcp-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gcp-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gcp-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gke | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gke-5.15 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-gkeop | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-gkeop-5.15 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | linux-hwe-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-hwe-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-hwe-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-intel-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oem-5.10 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oem-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oem-5.14 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oem-5.6 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oracle-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oracle-5.13 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-oracle-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-raspi2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-riscv | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-riscv-5.11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 20.04 | linux-riscv-5.8 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-aws-5.0 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-aws-5.3 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-azure | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-azure-5.3 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-azure-edge | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-gcp | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-gcp-5.3 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-gke-4.15 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-gke-5.4 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-gkeop-5.4 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-hwe | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-hwe-edge | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-oem | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-oracle-5.0 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 18.04 | linux-oracle-5.3 | Fix pending | UBUNTU-CVE-2021-47430 | |
| Ubuntu 16.04 | linux-hwe-edge | Fix pending | UBUNTU-CVE-2021-47430 | |
| Debian 14 | linux | Fixed | 5.14.12-1 | DEBIAN-CVE-2021-47430 |
| Debian 13 | linux | Fixed | 5.14.12-1 | DEBIAN-CVE-2021-47430 |
| Debian 12 | linux | Fixed | 5.14.12-1 | DEBIAN-CVE-2021-47430 |
What the vendor says
As published in the CVE record by Linux, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Linux: affected: 3c73b81a9164d0c1b6379d6672d2772a9e95168e to before f2447f6587b8ffe42ba04d14ce67d429a1163e5e, 3c73b81a9164d0c1b6379d6672d2772a9e95168e to before 4e9ec1c65da98c293f75d83755dfa5e03075a6d0, 3c73b81a9164d0c1b6379d6672d2772a9e95168e to before 3958b9c34c2729597e182cc606cc43942fd19f7c; fixed in
4e9ec1c65da98c293f75d83755dfa5e03075a6d0,3958b9c34c2729597e182cc606cc43942fd19f7c - Linux: affected: 5.8
References
- https://git.kernel.org/stable/c/f2447f6587b8ffe42ba04d14ce67d429a1163e5e
- https://git.kernel.org/stable/c/4e9ec1c65da98c293f75d83755dfa5e03075a6d0
- https://git.kernel.org/stable/c/3958b9c34c2729597e182cc606cc43942fd19f7c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.