net/9p/usbg: fix handling of the failed kzalloc() memory allocation
In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: fix handling of the failed kzalloc() memory allocation On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the following error report: ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns NULL not ERR_PTR on failure kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.2
- CVEs
- CVE-2024-56730
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 18:00 UTC · Revision 1
Source evidence
net/9p/usbg: fix handling of the failed kzalloc() memory allocation
core-osv · Original sourcePublished 29 Dec 2024, 11:30 UTC
In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: fix handling of the failed kzalloc() memory allocation On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the following error report: ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns NULL not ERR_PTR on failure kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion.
osv:CVE-2024-56730
Kernel
Fixed versions: 6.12.2
Complete source record
{
"id": "c32154c13b4f249c447341b5a8764665cc1bd33ffc82725ac79858c5584baeae",
"url": "https://osv.dev/vulnerability/CVE-2024-56730",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net/9p/usbg: fix handling of the failed kzalloc() memory allocation",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: fix handling of the failed kzalloc() memory allocation On the linux-next, next-20241108 vanilla kernel, the coccinelle tool gave the following error report: ./net/9p/trans_usbg.c:912:5-11: ERROR: allocation function on line 911 returns NULL not ERR_PTR on failure kzalloc() failure is fixed to handle the NULL return case on the memory exhaustion.",
"evidence": "osv:CVE-2024-56730",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-56730",
"aliases": [
"CVE-2024-56730"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a3be076dc174d9022a71a12554feb4c97b5c4d5c"
},
{
"fixed": "2cdb416de8b5795fd25fadcb69e1198b6df6d8cc"
},
{
"fixed": "ff1060813d9347e8c45c8b8cff93a4dfdb6726ad"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56730.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.12.0"
},
{
"fixed": "6.12.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56730.json"
}
}
],
"modified": "2026-10-28T02:30:44.891861735Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/2cdb416de8b5795fd25fadcb69e1198b6df6d8cc",
"https://git.kernel.org/stable/c/ff1060813d9347e8c45c8b8cff93a4dfdb6726ad",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56730.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-56730",
"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/56xxx/CVE-2024-56730.json"
}
},
"related_cves": [
{
"value": "CVE-2024-56730",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 512604,
"published_at": "2024-12-29T11:30:07.876+00:00"
}