# CVE-2024-56730: net/9p/usbg: fix handling of the failed kzalloc() memory allocation

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-12-29T11:30:07.876Z
- Modified: 2026-06-17T08:12:51.447Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a3be076dc174d9022a71a12554feb4c97b5c4d5c before 2cdb416de8b5795fd25fadcb69e1198b6df6d8cc; from a3be076dc174d9022a71a12554feb4c97b5c4d5c before ff1060813d9347e8c45c8b8cff93a4dfdb6726ad; 6.12 (not affected: before 6.12; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.12 before 6.12.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2cdb416de8b5795fd25fadcb69e1198b6df6d8cc> (patch)
- <https://git.kernel.org/stable/c/ff1060813d9347e8c45c8b8cff93a4dfdb6726ad> (patch)

## Sources

- CVE List: [CVE-2024-56730](https://www.cve.org/CVERecord?id=CVE-2024-56730), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56730](https://nvd.nist.gov/vuln/detail/CVE-2024-56730), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56730 · Whole record: https://cve.day/CVE-2024-56730.json · Rebuilt by cve.day 2026-11-25T22:58:50.558Z
