CVE-2021-47430
In the Linux kernel, the following vulnerability has been resolved: x ...
Overview
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. ]
Source: OX vulnerability database
Severity
3.3 · LOW
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 33 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | bpftool +105 | affected |
SUSE Linux Enterprise 2 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | kernel-livepatch-5-14-21-150400-24-122-default | 1-150400.9.3.2 | SUSE-SU-2024:2189-1 |
| 15.4 | kernel-devel +3 | 5.14.21-150400.24.122.1 | SUSE-SU-2024:2189-1 |
| 15.4 | cluster-md-kmp-default +13 | 5.14.21-150400.24.122.2 | SUSE-SU-2024:2189-1 |
| 15.4 | kernel-default-base | 5.14.21-150400.24.122.2.150400.24.58.2 | SUSE-SU-2024:2189-1 |
| 15.5 | kernel-livepatch-5-14-21-150500-13-58-rt | 1-150500.11.3.1 | SUSE-SU-2024:2008-1 |
| 15.5 | kernel-livepatch-5-14-21-150500-55-68-default | 1-150500.11.3.1 | SUSE-SU-2024:2190-1 |
3 more rows
SUSE Linux Enterprise Micro 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | kernel-rt +1 | 5.14.21-150400.15.82.1 | SUSE-SU-2024:2011-1 |
| 5.3 | kernel-default | 5.14.21-150400.24.122.2 | SUSE-SU-2024:2189-1 |
| 5.3 | kernel-default-base | 5.14.21-150400.24.122.2.150400.24.58.2 | SUSE-SU-2024:2189-1 |
| 5.4 | kernel-rt +1 | 5.14.21-150400.15.82.1 | SUSE-SU-2024:2011-1 |
| 5.4 | kernel-default | 5.14.21-150400.24.122.2 | SUSE-SU-2024:2189-1 |
| 5.4 | kernel-default-base | 5.14.21-150400.24.122.2.150400.24.58.2 | SUSE-SU-2024:2189-1 |
3 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.84-1 |
| 12 | linux | 5.14.12-1 |
| 13 | linux | 5.14.12-1 |
| 14 | linux | 5.14.12-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 5.14.12-1 |
openSUSE Leap Micro 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | kernel-rt | 5.14.21-150400.15.82.1 | SUSE-SU-2024:2011-1 |
| 5.3 | kernel-default | 5.14.21-150400.24.122.2 | SUSE-SU-2024:2189-1 |
| 5.3 | kernel-default-base | 5.14.21-150400.24.122.2.150400.24.58.2 | SUSE-SU-2024:2189-1 |
| 5.4 | kernel-rt | 5.14.21-150400.15.82.1 | SUSE-SU-2024:2011-1 |
| 5.4 | kernel-default | 5.14.21-150400.24.122.2 | SUSE-SU-2024:2189-1 |
| 5.4 | kernel-default-base | 5.14.21-150400.24.122.2.150400.24.58.2 | SUSE-SU-2024:2189-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-linux | 5.10.84-1 |
| 12 | rootio-linux | 5.14.12-1 |
| 13 | rootio-linux | 5.14.12-1 |
References
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.