caif: fix integer underflow in cffrml_receive()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b482cd2053e3b90a7b33a78c63cdb6badf2ec383 · < 21fdcc00656a60af3c7aae2dea8dd96abd35519c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
caif: fix integer underflow in cffrml_receive()
The cffrml_receive() function extracts a length field from the packet header and, when FCS is disabled, subtracts 2 from this length without validating that len >= 2.
If an attacker sends a malicious packet with a length field of 0 or 1 to an interface with FCS disabled, the subtraction causes an integer underflow.
This can lead to memory exhaustion and kernel instability, potential information disclosure if padding contains uninitialized kernel memory.
Fix this by validating that len >= 2 before performing the subtraction.
From the CVE record · Linux
The Linux kernel's CAIF cffrml_receive() function can underflow a packet length when FCS is disabled. An attacker who sends a packet with a length field of 0 or 1 to an affected interface can cause memory exhaustion and kernel instability, with potential information disclosure.
Operators of Linux kernels using a CAIF interface with FCS disabled should check their systems; affected versions were not specified.