tcp: fix a signed-integer-overflow bug in tcp_add_backlog()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix a signed-integer-overflow bug in tcp_add_backlog()
The type of sk_rcvbuf and sk_sndbuf in struct sock is int, and in tcp_add_backlog(), the variable limit is caculated by adding sk_rcvbuf, sk_sndbuf and 64 * 1024, it may exceed the max value of int and overflow. This patch reduces the limit budget by halving the sndbuf to solve this issue since ACK packets are much smaller than the payload.
From the CVE record · Linux
The Linux kernel's tcp_add_backlog() can overflow a signed integer when its receive and send buffer values plus 64 KiB exceed the maximum int value. The input does not specify what an attacker could achieve or whether authentication, network access, or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.