What’s Vulnerable › Vulnerabilities
CVE-2024-56730: net/9p/usbg: fix handling of the failed kzalloc() memory allocation
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-29 · updated 2026-06-17
- Weakness: CWE-476
Description
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.
Affected products
- Linux kernel: from 6.12 before 6.12.2 — fixed in 6.12.2
How to fix
Upgrade to a fixed version: Linux kernel 6.12.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2cdb416de8b5795fd25fadcb69e1198b6df6d8cc
- https://git.kernel.org/stable/c/ff1060813d9347e8c45c8b8cff93a4dfdb6726ad
Get alerted when CVE-2024-56730 or the next vulnerability affects your stack