# CVE-2024-36975: KEYS: trusted: Do not use WARN when encode fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-06-18T19:20:24.553Z
- **Modified:** 2026-06-17T07:37:31.523Z

## Who should check

- Anyone running Linux \>= f2219745250f388edacabe6cca73654131c67d0a, \< 96f650995c70237b061b497c66755e32908f8972; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 681935009fec3fc22af97ee312d4a24ccf3cf087; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 1c652e1e10676f942149052d9329b8bf2703529a; \>= f2219745250f388edacabe6cca73654131c67d0a, \< d32c6e09f7c4bec3ebc4941323f0aa6366bc1487; \>= f2219745250f388edacabe6cca73654131c67d0a, \< ff91cc12faf798f573dab2abc976c1d5b1862fea; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 050bf3c793a07f96bd1e2fd62e1447f731ed733b
- Anyone running Linux 5.13

## 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 and fixed versions

- Linux: \>= f2219745250f388edacabe6cca73654131c67d0a, \< 96f650995c70237b061b497c66755e32908f8972; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 681935009fec3fc22af97ee312d4a24ccf3cf087; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 1c652e1e10676f942149052d9329b8bf2703529a; \>= f2219745250f388edacabe6cca73654131c67d0a, \< d32c6e09f7c4bec3ebc4941323f0aa6366bc1487; \>= f2219745250f388edacabe6cca73654131c67d0a, \< ff91cc12faf798f573dab2abc976c1d5b1862fea; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 050bf3c793a07f96bd1e2fd62e1447f731ed733b (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 050bf3c793a07f96bd1e2fd62e1447f731ed733b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36975. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36975.md
Affected: Linux >= f2219745250f388edacabe6cca73654131c67d0a, < 96f650995c70237b061b497c66755e32908f8972; >= f2219745250f388edacabe6cca73654131c67d0a, < 681935009fec3fc22af97ee312d4a24ccf3cf087; >= f2219745250f388edacabe6cca73654131c67d0a, < 1c652e1e10676f942149052d9329b8bf2703529a; >= f2219745250f388edacabe6…
Fixed in: Linux 96f650995c70237b061b497c66755e32908f8972, Linux 681935009fec3fc22af97ee312d4a24ccf3cf087, Linux 1c652e1e10676f942149052d9329b8bf2703529a, Linux 050bf3c793a07f96bd1e2fd62e1447f731ed733b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36975 being exploited?

There is no confirmed exploitation: CVE-2024-36975 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36975?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36975?

Linux \>= f2219745250f388edacabe6cca73654131c67d0a, \< 96f650995c70237b061b497c66755e32908f8972; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 681935009fec3fc22af97ee312d4a24ccf3cf087; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 1c652e1e10676f942149052d9329b8bf2703529a; \>= f2219745250f388edacabe6cca73654131c67d0a, \< d32c6e09f7c4bec3ebc4941323f0aa6366bc1487; \>= f2219745250f388edacabe6cca73654131c67d0a, \< ff91cc12faf798f573dab2abc976c1d5b1862fea; \>= f2219745250f388edacabe6cca73654131c67d0a, \< 050bf3c793a07f96bd1e2fd62e1447f731ed733b; Linux 5.13.

### Is there a fix for CVE-2024-36975?

Yes. Fixed in Linux 96f650995c70237b061b497c66755e32908f8972, Linux 681935009fec3fc22af97ee312d4a24ccf3cf087, Linux 1c652e1e10676f942149052d9329b8bf2703529a, Linux 050bf3c793a07f96bd1e2fd62e1447f731ed733b. Upgrade Linux to 050bf3c793a07f96bd1e2fd62e1447f731ed733b or later.

### How do I check if I'm affected by CVE-2024-36975?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972>
- patch: <https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087>
- patch: <https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a>
- patch: <https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487>
- patch: <https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea>
- patch: <https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36975>

HTML: <https://flawdb.com/CVE-2024-36975> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36975>
