3.3low
perf/core: Fix unconditional security_locked_down() call
- Severity
- 3.3low CVSS:3.1 by NVD
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b0c8fdc7fdb77586c3d1937050925b960743306e before b246759284d6a2bc5b6f1009caeeb3abce2ec9ff, from b0c8fdc7fdb77586c3d1937050925b960743306e before 4348d3b5027bc3ff6336368b6c60605d4ef8e1ce, from b0c8fdc7fdb77586c3d1937050925b960743306e before f5809ca4c311b71bfaba6d13f4e39eab0557895e, from b0c8fdc7fdb77586c3d1937050925b960743306e before c7b0208ee370b89d20486fae71cd9abb759819c1, from b0c8fdc7fdb77586c3d1937050925b960743306e before 08ef1af4de5fe7de9c6d69f1e22e51b66e385d9b, 5.4 Not affected: before 5.4, from 5.4.117 up to 5.4.*, from 5.10.35 up to 5.10.*, from 5.11.19 up to 5.11.*, from 5.12.2 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.4 before 5.4.117, from 5.5 before 5.10.35, from 5.11 before 5.11.19, from 5.12 before 5.12.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: perf/core: corrige la llamada incondicional a security_locked_down() Actualmente, el estado de bloqueo se consulta incondicionalmente, aunque su resultado se usa solo si el bit PERF_SAMPLE_REGS_INTR está establecido en attr.sample_type. Si bien eso no importa en el caso del Lockdown LSM, causa problemas con la implementación del gancho de bloqueo de SELinux. SELinux implementa el gancho lock_down comprobando si el tipo de tarea actual tiene el correspondiente permiso de clase de "bloqueo" ("integridad" o "confidencialidad") permitido en la política. Esto significa que llamar al enlace cuando se ignoraría la decisión de control de acceso genera una verificación de permisos y un registro de auditoría falsos. Solucione este problema verificando sample_type primero y solo llamando al gancho cuando se respete su resultado.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46971 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-46971 changed 2026-06-17 | Public domain |