CVE-2022-50865
tcp: fix a signed-integer-overflow bug in tcp_add_backlog()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= c9c3321257e1b95be9b375f811fb250162af8d39, < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 4f23cb2be530785db284a685d1b1c30224d8a538; >= c9c3321257e1b95be9b375f811fb250162af8d39, < a85d39f14aa8a71e29cfb5eb5de02878a8779898; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 28addf029417d53b1df062b4c87feb7bc033cb5f; >= c9c3321257e1b95be9b375f811fb250162af8d39, < ec791d8149ff60c40ad2074af3b92a39c916a03f
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= c9c3321257e1b95be9b375f811fb250162af8d39, < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 4f23cb2be530785db284a685d1b1c30224d8a538; >= c9c3321257e1b95be9b375f811fb250162af8d39, < a85d39f14aa8a71e29cfb5eb5de02878a8779898; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 28addf029417d53b1df062b4c87feb7bc033cb5f; >= c9c3321257e1b95be9b375f811fb250162af8d39, < ec791d8149ff60c40ad2074af3b92a39c916a03f; Linux 4.9
- Fixed in
- Linux 9d04b4d0feee12bce6bfe37f30d8e953d3c30368, Linux 4f23cb2be530785db284a685d1b1c30224d8a538, Linux 28addf029417d53b1df062b4c87feb7bc033cb5f
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.78% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= c9c3321257e1b95be9b375f811fb250162af8d39, < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 4f23cb2be530785db284a685d1b1c30224d8a538; >= c9c3321257e1b95be9b375f811fb250162af8d39, < a85d39f14aa8a71e29cfb5eb5de02878a8779898; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 28addf029417d53b1df062b4c87feb7bc033cb5f; >= c9c3321257e1b95be9b375f811fb250162af8d39, < ec791d8149ff60c40ad2074af3b92a39c916a03f | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50865. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50865.md Affected: Linux >= c9c3321257e1b95be9b375f811fb250162af8d39, < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 4f23cb2be530785db284a685d1b1c30224d8a538; >= c9c3321257e1b95be9b375f811fb250162af8d39, < a85d39f14aa8a71e29cfb5eb5de02878a8779898; >= c9c3321257e1b95be9b375f… Fixed in: Linux 9d04b4d0feee12bce6bfe37f30d8e953d3c30368, Linux 4f23cb2be530785db284a685d1b1c30224d8a538, Linux 28addf029417d53b1df062b4c87feb7bc033cb5f Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2022-50865 being exploited?
There is no confirmed exploitation: CVE-2022-50865 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50865?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-50865?
Linux >= c9c3321257e1b95be9b375f811fb250162af8d39, < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 4f23cb2be530785db284a685d1b1c30224d8a538; >= c9c3321257e1b95be9b375f811fb250162af8d39, < a85d39f14aa8a71e29cfb5eb5de02878a8779898; >= c9c3321257e1b95be9b375f811fb250162af8d39, < 28addf029417d53b1df062b4c87feb7bc033cb5f; >= c9c3321257e1b95be9b375f811fb250162af8d39, < ec791d8149ff60c40ad2074af3b92a39c916a03f; Linux 4.9.
Is there a fix for CVE-2022-50865?
Yes. Fixed in Linux 9d04b4d0feee12bce6bfe37f30d8e953d3c30368, Linux 4f23cb2be530785db284a685d1b1c30224d8a538, Linux 28addf029417d53b1df062b4c87feb7bc033cb5f. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-50865?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.