CVE-2026-72013 (GCVE-0-2026-72013)
Vulnerability from cvelistv5
Published
2026-08-15 05:51
Modified
2026-08-17 05:06
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
A NULL pointer dereference issue is noticed in riscv's
machine_kexec_prepare(), where image->segment[i].buf might be NULL and
copied unchecked.
The NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by
kexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without
a check in machine_kexec_prepare():
kexec_file_load
-> kimage_file_alloc_init()
-> kimage_file_prepare_segments()
-> ima_add_kexec_buffer()
-> kexec_add_buffer()
-> machine_kexec_prepare()
-> memcpy()
Address this by adding a check before the data copy attempt.
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Version: 4211742f0f9e083188f4f0ada00d6eeeef31b7c7 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: b7fb4d78a6ade6026d9e5cf438c2a46ab962e032 Version: 3ca8a07f141fd8eec347a82bdfa4b94164f2bb97 Version: 3ba83e46b591381e718007f55c9f831fd0cd7ee8 Version: 5.15.47 ≤ Version: 5.17.15 ≤ Version: 5.18.4 ≤ |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"arch/riscv/kernel/machine_kexec.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "606cc45e871e34b80a2f63874f069387a5b44176",
"status": "affected",
"version": "4211742f0f9e083188f4f0ada00d6eeeef31b7c7",
"versionType": "git"
},
{
"lessThan": "c462e15497dc40abe369b3be7a2c91ac5d1be6f9",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"lessThan": "b5f92cc4e24a298bf390b0b189a4b888c0900161",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"lessThan": "6ad6954492697681ebcfc1beb0eb384406cd4b65",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"lessThan": "eadd0c2c76aee6a738f17f251434c77db3c606c8",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"lessThan": "d5b2752a17efc165793ae38f2c24b5ed9c04ffde",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"lessThan": "81bbcff0c053c4f5c711c31a9b72fc492bd96c3f",
"status": "affected",
"version": "b7fb4d78a6ade6026d9e5cf438c2a46ab962e032",
"versionType": "git"
},
{
"status": "affected",
"version": "3ca8a07f141fd8eec347a82bdfa4b94164f2bb97",
"versionType": "git"
},
{
"status": "affected",
"version": "3ba83e46b591381e718007f55c9f831fd0cd7ee8",
"versionType": "git"
},
{
"lessThan": "5.15.212",
"status": "affected",
"version": "5.15.47",
"versionType": "semver"
},
{
"lessThan": "5.18",
"status": "affected",
"version": "5.17.15",
"versionType": "semver"
},
{
"lessThan": "5.19",
"status": "affected",
"version": "5.18.4",
"versionType": "semver"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"arch/riscv/kernel/machine_kexec.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.19"
},
{
"lessThan": "5.19",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.212",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.178",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.97",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.1.*",
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.212",
"versionStartIncluding": "5.15.47",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.178",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.145",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.97",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.40",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.1.5",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2",
"versionStartIncluding": "5.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.17.15",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.18.4",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Prevent NULL pointer dereference in machine_kexec_prepare()\n\nA NULL pointer dereference issue is noticed in riscv\u0027s\nmachine_kexec_prepare(), where image-\u003esegment[i].buf might be NULL and\ncopied unchecked.\n\nThe NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by\nkexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without\na check in machine_kexec_prepare():\n\n kexec_file_load\n -\u003e kimage_file_alloc_init()\n -\u003e kimage_file_prepare_segments()\n -\u003e ima_add_kexec_buffer()\n -\u003e kexec_add_buffer()\n -\u003e machine_kexec_prepare()\n -\u003e memcpy()\n\nAddress this by adding a check before the data copy attempt."
}
],
"providerMetadata": {
"dateUpdated": "2026-08-17T05:06:35.378Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176"
},
{
"url": "https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9"
},
{
"url": "https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161"
},
{
"url": "https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65"
},
{
"url": "https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8"
},
{
"url": "https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde"
},
{
"url": "https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f"
}
],
"title": "riscv: Prevent NULL pointer dereference in machine_kexec_prepare()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-72013",
"datePublished": "2026-08-15T05:51:41.982Z",
"dateReserved": "2026-08-09T03:40:39.899Z",
"dateUpdated": "2026-08-17T05:06:35.378Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…