FKIE_CVE-2026-72013
Vulnerability from fkie_nvd - Published: 2026-08-15 06:21 - Updated: 2026-08-17 06:17
Severity
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 |
|---|
{
"affected": [
{
"affectedData": [
{
"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"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"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."
}
],
"id": "CVE-2026-72013",
"lastModified": "2026-08-17T06:17:58.763",
"metrics": {},
"published": "2026-08-15T06:21:00.033",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/606cc45e871e34b80a2f63874f069387a5b44176"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/6ad6954492697681ebcfc1beb0eb384406cd4b65"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/81bbcff0c053c4f5c711c31a9b72fc492bd96c3f"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/b5f92cc4e24a298bf390b0b189a4b888c0900161"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c462e15497dc40abe369b3be7a2c91ac5d1be6f9"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/d5b2752a17efc165793ae38f2c24b5ed9c04ffde"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/eadd0c2c76aee6a738f17f251434c77db3c606c8"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Loading…
Loading…