x86/entry: Clear X86_FEATURE_SMAP when CONFIG_X86_SMAP=n (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 12 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Analyzed
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. ]
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2021-34435
- GCVE · GCVE-0-2021-47430
CERT-FR advisories
- CERTFR-2025-AVI-1057 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0526 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0496 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.8.1 < 5.10.73cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.14.12cpe:2.3:o:linux:linux_kernel:5.8:-:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.8:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.8:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.8:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.8:rc7:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 3c73b81a9164d0c1b6379d6672d2772a9e95168e < f2447f6587b8ffe42ba04d14ce67d429a1163e5e ; affected 3c73b81a9164d0c1b6379d6672d2772a9e95168e < 4e9ec1c65da98c293f75d83755dfa5e03075a6d0 ; affected 3c73b81a9164d0c1b6379d6672d2772a9e95168e < 3958b9c34c2729597e182cc606cc43942fd19f7c |
| Linux · Linux | affected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.73 ≤ 5.10.* ; unaffected 5.14.12 ≤ 5.14.* ; unaffected 5.15 ≤ * |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |