CVE-2024-36975
JSON

5.5medium

KEYS: trusted: Do not use WARN when encode fails

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Do not use WARN when encode fails When asn1_encode_sequence() fails, WARN is not the correct solution. 1. asn1_encode_sequence() is not an internal function (located in lib/asn1_encode.c). 2. Location is known, which makes the stack trace useless. 3. Results a crash if panic_on_warn is set. It is also noteworthy that the use of WARN is undocumented, and it should be avoided unless there is a carefully considered rationale to use it. Replace WARN with pr_err, and print the return value instead, which is only useful piece of information.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f2219745250f388edacabe6cca73654131c67d0a before 96f650995c70237b061b497c66755e32908f8972, from f2219745250f388edacabe6cca73654131c67d0a before 681935009fec3fc22af97ee312d4a24ccf3cf087, from f2219745250f388edacabe6cca73654131c67d0a before 1c652e1e10676f942149052d9329b8bf2703529a, from f2219745250f388edacabe6cca73654131c67d0a before d32c6e09f7c4bec3ebc4941323f0aa6366bc1487, from f2219745250f388edacabe6cca73654131c67d0a before ff91cc12faf798f573dab2abc976c1d5b1862fea, from f2219745250f388edacabe6cca73654131c67d0a before 050bf3c793a07f96bd1e2fd62e1447f731ed733b, 5.13
Not affected: before 5.13, from 5.15.160 up to 5.15.*, from 6.1.92 up to 6.1.*, from 6.6.32 up to 6.6.*, from 6.8.11 up to 6.8.*, from 6.9.2 up to 6.9.*
CVE List
linux linux_kernelfrom 5.13 before 5.15.160, from 5.16 before 6.1.92, from 6.2 before 6.6.32, from 6.7 before 6.8.11, from 6.9 before 6.9.2NVD

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: KEYS: trusted: Do not use WARN when encode fails When asn1_encode_sequence() fails, WARN is not the correct solution. 1. asn1_encode_sequence() is not an internal function (located in lib/asn1_encode.c). 2. Location is known, which makes the stack trace useless. 3. Results a crash if panic_on_warn is set. It is also noteworthy that the use of WARN is undocumented, and it should be avoided unless there is a carefully considered rationale to use it. Replace WARN with pr_err, and print the return value instead, which is only useful piece of information.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: LLAVES: confiable: no usar WARN cuando falla la codificación Cuando falla asn1_encode_sequence(), WARN no es la solución correcta. 1. asn1_encode_sequence() no es una función interna (ubicada en lib/asn1_encode.c). 2. Se conoce la ubicación, lo que hace que el seguimiento de la pila sea inútil. 3. Se produce un bloqueo si se configura pánico_on_warn. También es digno de mención que el uso de WARN no está documentado y debe evitarse a menos que exista una justificación cuidadosamente considerada para su uso. Reemplace WARN con pr_err e imprima el valor de retorno, que es solo información útil.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-36975 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-36975 changed 2026-06-17Public domain