rxrpc: Fix untrusted unsigned subtract
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:
rxrpc: Fix untrusted unsigned subtract
Fix the following Smatch static checker warning:
net/rxrpc/rxgk_app.c:65 rxgk_yfs_decode_ticket() warn: untrusted unsigned subtract. 'ticket_len - 10 * 4'
by prechecking the length of what we're trying to extract in two places in the token and decoding for a response packet.
Also use sizeof() on the struct we're extracting rather specifying the size numerically to be consistent with the other related statements.
From the CVE record · Linux
The Linux kernel’s rxrpc code uses an untrusted length in an unsigned subtraction while decoding a ticket or response packet. A malformed length may lead to an out-of-bounds write; the input does not specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with rxrpc should check their vendor’s advisory; affected versions are not specified.