x86/entry: Clear X86_FEATURE_SMAP when CONFIG_X86_SMAP=n
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.735.14.125.15In 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.
From the CVE record · Linux
The Linux kernel can emit a warning on a CPU that supports SMAP when CONFIG_X86_SMAP is disabled. A local run of the syscall_nt selftest can trigger the warning; the input does not describe a network attack or an authentication requirement.
Engineers running Linux kernels built with CONFIG_X86_SMAP disabled on SMAP-capable CPUs should check their builds; affected versions are not specified.