CVE-2024-36975

KEYS: trusted: Do not use WARN when encode fails

No CVSS score yet EPSS 0.21%

Published 18 Jun 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-36975

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36975 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.9% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f2219745250f388edacabe6cca73654131c67d0a, before 96f650995c70237b061b497c66755e32908f8972
affected from f2219745250f388edacabe6cca73654131c67d0a, before 681935009fec3fc22af97ee312d4a24ccf3cf087
affected from f2219745250f388edacabe6cca73654131c67d0a, before 1c652e1e10676f942149052d9329b8bf2703529a
affected from f2219745250f388edacabe6cca73654131c67d0a, before d32c6e09f7c4bec3ebc4941323f0aa6366bc1487
affected from f2219745250f388edacabe6cca73654131c67d0a, before ff91cc12faf798f573dab2abc976c1d5b1862fea
affected from f2219745250f388edacabe6cca73654131c67d0a, before 050bf3c793a07f96bd1e2fd62e1447f731ed733b
Other versions: unaffected
Linux
affected 5.13
unaffected before 5.13
unaffected from 5.15.160 up to and including 5.15.*
unaffected from 6.1.92 up to and including 6.1.*
unaffected from 6.6.32 up to and including 6.6.*
unaffected from 6.8.11 up to and including 6.8.*
unaffected from 6.9.2 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36975 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36975

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-36975
trivy image --scanners vuln IMAGE | grep CVE-2024-36975

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-36975 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.