{"id":"CVE-2021-46971","aliases":["CVE-2021-46971"],"related":[],"kind":"vulnerability","state":"published","title":"perf/core: Fix unconditional security_locked_down() call","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix unconditional security_locked_down() call\n\nCurrently, the lockdown state is queried unconditionally, even though\nits result is used only if the PERF_SAMPLE_REGS_INTR bit is set in\nattr.sample_type. While that doesn't matter in case of the Lockdown LSM,\nit causes trouble with the SELinux's lockdown hook implementation.\n\nSELinux implements the locked_down hook with a check whether the current\ntask's type has the corresponding \"lockdown\" class permission\n(\"integrity\" or \"confidentiality\") allowed in the policy. This means\nthat calling the hook when the access control decision would be ignored\ngenerates a bogus permission check and audit record.\n\nFix this by checking sample_type first and only calling the hook when\nits result would be honored.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Fix unconditional security_locked_down() call\n\nCurrently, the lockdown state is queried unconditionally, even though\nits result is used only if the PERF_SAMPLE_REGS_INTR bit is set in\nattr.sample_type. While that doesn't matter in case of the Lockdown LSM,\nit causes trouble with the SELinux's lockdown hook implementation.\n\nSELinux implements the locked_down hook with a check whether the current\ntask's type has the corresponding \"lockdown\" class permission\n(\"integrity\" or \"confidentiality\") allowed in the policy. This means\nthat calling the hook when the access control decision would be ignored\ngenerates a bogus permission check and audit record.\n\nFix this by checking sample_type first and only calling the hook when\nits result would be honored.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-02-27T18:47:06.674Z","modified":"2026-06-17T04:16:01.880Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3,"rating":"LOW"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3,"rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b0c8fdc7fdb77586c3d1937050925b960743306e","fixed":"b246759284d6a2bc5b6f1009caeeb3abce2ec9ff","status":"affected"},{"type":"git","introduced":"b0c8fdc7fdb77586c3d1937050925b960743306e","fixed":"4348d3b5027bc3ff6336368b6c60605d4ef8e1ce","status":"affected"},{"type":"git","introduced":"b0c8fdc7fdb77586c3d1937050925b960743306e","fixed":"f5809ca4c311b71bfaba6d13f4e39eab0557895e","status":"affected"},{"type":"git","introduced":"b0c8fdc7fdb77586c3d1937050925b960743306e","fixed":"c7b0208ee370b89d20486fae71cd9abb759819c1","status":"affected"},{"type":"git","introduced":"b0c8fdc7fdb77586c3d1937050925b960743306e","fixed":"08ef1af4de5fe7de9c6d69f1e22e51b66e385d9b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.117","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.35","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.19","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.2","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"5.4.117"},{"status":"affected","introduced":"5.5","fixed":"5.10.35"},{"status":"affected","introduced":"5.11","fixed":"5.11.19"},{"status":"affected","introduced":"5.12","fixed":"5.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b246759284d6a2bc5b6f1009caeeb3abce2ec9ff","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4348d3b5027bc3ff6336368b6c60605d4ef8e1ce","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5809ca4c311b71bfaba6d13f4e39eab0557895e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7b0208ee370b89d20486fae71cd9abb759819c1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08ef1af4de5fe7de9c6d69f1e22e51b66e385d9b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-02-28T20:22:11.491Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46971","url":"https://www.cve.org/CVERecord?id=CVE-2021-46971","licence":"CVE Terms of Use","modified":"2026-05-11T13:45:28.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46971","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46971","licence":"Public domain","modified":"2026-06-17T04:16:01.880Z"}],"updatedAt":"2026-11-25T22:58:08.593Z","epss":{"score":0.0023,"percentile":0.14849,"date":"2026-12-01T12:00:22.000Z"}}