# CVE-2022-50865: tcp: fix a signed-integer-overflow bug in tcp_add_backlog()

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-02)
- Published: 2025-12-30T12:15:37.150Z
- Modified: 2026-08-05T08:59:52.038Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c9c3321257e1b95be9b375f811fb250162af8d39 before 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; from c9c3321257e1b95be9b375f811fb250162af8d39 before 4f23cb2be530785db284a685d1b1c30224d8a538; from c9c3321257e1b95be9b375f811fb250162af8d39 before a85d39f14aa8a71e29cfb5eb5de02878a8779898; from c9c3321257e1b95be9b375f811fb250162af8d39 before 28addf029417d53b1df062b4c87feb7bc033cb5f; from c9c3321257e1b95be9b375f811fb250162af8d39 before ec791d8149ff60c40ad2074af3b92a39c916a03f; 4.9 (not affected: before 4.9; from 5.4.278 up to 5.4.*; from 5.10.153 up to 5.10.*; from 5.15.77 up to 5.15.*; from 6.0.7 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/9d04b4d0feee12bce6bfe37f30d8e953d3c30368>
- <https://git.kernel.org/stable/c/4f23cb2be530785db284a685d1b1c30224d8a538>
- <https://git.kernel.org/stable/c/a85d39f14aa8a71e29cfb5eb5de02878a8779898>
- <https://git.kernel.org/stable/c/28addf029417d53b1df062b4c87feb7bc033cb5f>
- <https://git.kernel.org/stable/c/ec791d8149ff60c40ad2074af3b92a39c916a03f>

## Sources

- CVE List: [CVE-2022-50865](https://www.cve.org/CVERecord?id=CVE-2022-50865), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50865](https://nvd.nist.gov/vuln/detail/CVE-2022-50865), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50865 · Whole record: https://cve.day/CVE-2022-50865.json · Rebuilt by cve.day 2026-11-25T22:58:21.384Z
