CVE-2024-36975

Source
https://cve.org/CVERecord?id=CVE-2024-36975
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36975.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-36975
Downstream
Related
Published
2024-06-18T19:20:24.553Z
Modified
2026-05-28T03:54:12.260038215Z
Summary
KEYS: trusted: Do not use WARN when encode fails
Details

In the Linux kernel, the following vulnerability has been resolved:

KEYS: trusted: Do not use WARN when encode fails

When asn1encodesequence() fails, WARN is not the correct solution.

  1. asn1encodesequence() 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 paniconwarn 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36975.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f2219745250f388edacabe6cca73654131c67d0a
Fixed
96f650995c70237b061b497c66755e32908f8972
Fixed
681935009fec3fc22af97ee312d4a24ccf3cf087
Fixed
1c652e1e10676f942149052d9329b8bf2703529a
Fixed
d32c6e09f7c4bec3ebc4941323f0aa6366bc1487
Fixed
ff91cc12faf798f573dab2abc976c1d5b1862fea
Fixed
050bf3c793a07f96bd1e2fd62e1447f731ed733b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36975.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.13.0
Fixed
5.15.160
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.92
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.32
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.11
Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.9.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36975.json"