net/9p/usbg: fix handling of the failed kzalloc() memory allocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s 9p USB gadget transport mishandles a failed kzalloc() allocation, which returns NULL when memory is exhausted. This can lead to a NULL pointer dereference; the input does not establish an attacker route, authentication requirements, or user-interaction requirements.
Engineers running Linux kernels with the affected 9p USB gadget transport should check their builds; affected versions are not specified.