firmware: arm_ffa: Fix NULL dereference in ffa_partition_info_get()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d0c0bce831223b08e5bade2cefc93c3ddb790796 · < 12a42c610e4432e7708cc48d607e5903fffe0aad| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_ffa: Fix NULL dereference in ffa_partition_info_get()
ffa_partition_info_get() passes uuid_str directly to uuid_parse() without a NULL check. When a caller passes NULL, uuid_parse() -> __uuid_parse() -> uuid_is_valid() dereferences the pointer, causing a kernel panic:
| Unable to handle kernel NULL pointer dereference at virtual address | 0000000000000040 | pc : uuid_parse+0x40/0xac | lr : ffa_partition_info_get+0x1c/0x94 [arm_ffa]
Add a NULL guard before uuid_parse() so a NULL argument returns -ENODEV instead of crashing. Callers are expected to always supply a valid partition UUID, so NULL is not a supported input.
From the CVE record · Linux
The Linux kernel’s Arm FF-A ffa_partition_info_get() function does not check for a NULL partition UUID before parsing it. A caller that passes NULL can cause a kernel panic; the input does not specify whether this is reachable over a network, requires authentication, or involves user interaction.
Engineers running Linux kernels with the Arm FF-A component should check their installations; affected versions are not specified.