KEYS: trusted: Do not use WARN when encode fails
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.160, 6.1.92, 6.6.32, 6.8.11, 6.9.2
- CVEs
- CVE-2024-36975
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:57 UTC · Revision 1
Source evidence
KEYS: trusted: Do not use WARN when encode fails
core-osv · Original sourcePublished 18 Jun 2024, 19:20 UTC
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.
osv:CVE-2024-36975
Kernel
Fixed versions: 5.15.160, 6.1.92, 6.6.32, 6.8.11, 6.9.2
Complete source record
{
"id": "d1dfe81f09ad3f435b7a475a29eb506ad091d1e091b23265af189010ec85e5ea",
"url": "https://osv.dev/vulnerability/CVE-2024-36975",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "KEYS: trusted: Do not use WARN when encode fails",
"summary": "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.",
"evidence": "osv:CVE-2024-36975",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.92",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.32",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.9.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-36975",
"aliases": [
"CVE-2024-36975"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f2219745250f388edacabe6cca73654131c67d0a"
},
{
"fixed": "96f650995c70237b061b497c66755e32908f8972"
},
{
"fixed": "681935009fec3fc22af97ee312d4a24ccf3cf087"
},
{
"fixed": "1c652e1e10676f942149052d9329b8bf2703529a"
},
{
"fixed": "d32c6e09f7c4bec3ebc4941323f0aa6366bc1487"
},
{
"fixed": "ff91cc12faf798f573dab2abc976c1d5b1862fea"
},
{
"fixed": "050bf3c793a07f96bd1e2fd62e1447f731ed733b"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36975.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36975.json"
}
}
],
"modified": "2026-10-28T02:30:53.387170590Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b",
"https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a",
"https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087",
"https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972",
"https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487",
"https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36975.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-36975",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36975.json"
}
},
"related_cves": [
{
"value": "CVE-2024-36975",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 522003,
"published_at": "2024-06-18T19:20:24.553+00:00"
}