fwctl: pds: Validate RPC input size before parsing
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 |
|
|
6.18.347.0.117.1In the Linux kernel, the following vulnerability has been resolved:
fwctl: pds: Validate RPC input size before parsing
The fwctl core allocates the device-specific RPC input buffer with fwctl_rpc.in_len and passes that buffer to the driver callback.
pdsfc_fw_rpc() casts the buffer to struct fwctl_rpc_pds and then calls pdsfc_validate_rpc(), which reads fields from that structure before checking that the input buffer is large enough to contain it. A short in_len can make pds_fwctl read beyond the allocation.
Reject pds RPC buffers that are smaller than struct fwctl_rpc_pds before parsing any pds-specific fields.
From the CVE record · Linux
The Linux kernel pds fwctl driver reads RPC fields before confirming the input buffer is large enough. An attacker able to submit a short pds RPC input could cause a read beyond the allocated buffer. The input does not specify access requirements or whether user interaction is needed.
Engineers running Linux kernels with the pds fwctl driver should check their deployments; affected versions are not specified.