CVE-2021-46971: perf/core: Fix unconditional security_locked_down() call
Vulnerability summary
CVE-2021-46971 is a low (CVSS 3.3) vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.9% of scored vulnerabilities.
Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 27-02-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix unconditional security_locked_down() call Currently, the lockdown state is queried unconditionally, even though its result is used only if the PERF_SAMPLE_REGS_INTR bit is set in attr.sample_type. While that doesn't matter in case of the Lockdown LSM, it causes trouble with the SELinux's lockdown hook implementation. SELinux implements the locked_down hook with a check whether the current task's type has the corresponding "lockdown" class permission ("integrity" or "confidentiality") allowed in the policy. This means that calling the hook when the access control decision would be ignored generates a bogus permission check and audit record. Fix this by checking sample_type first and only calling the hook when its result would be honored.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu82 products
- linux< 5.4.0-77.86
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.4.0-1051.53
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ b0c8fdc7fdb77586c3d1937050925b960743306e, < b246759284d6a2bc5b6f1009caeeb3abce2ec9ff | ≥ b0c8fdc7fdb77586c3d1937050925b960743306e, < 4348d3b5027bc3ff6336368b6c60605d4ef8e1ce | ≥ b0c8fdc7fdb77586c3d1937050925b960743306e, < f5809ca4c311b71bfaba6d13f4e39eab0557895e | ≥ b0c8fdc7fdb77586c3d1937050925b960743306e, < c7b0208ee370b89d20486fae71cd9abb759819c1 | ≥ b0c8fdc7fdb77586c3d1937050925b960743306e, < 08ef1af4de5fe7de9c6d69f1e22e51b66e385d9b | 5.4
- linux_kernel≥ 5.4, < 5.4.117 | ≥ 5.5, < 5.10.35 | ≥ 5.11, < 5.11.19 | ≥ 5.12, < 5.12.2
Debian1 product
- linux< 5.10.38-1
3 vendors · 85 products