CVE-2022-50865
tcp: fix a signed-integer-overflow bug in tcp_add_backlog()
Check your servers for CVE-2022-50865
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50865 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.57%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 48.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c9c3321257e1b95be9b375f811fb250162af8d39, before 9d04b4d0feee12bce6bfe37f30d8e953d3c30368 affected from c9c3321257e1b95be9b375f811fb250162af8d39, before 4f23cb2be530785db284a685d1b1c30224d8a538 affected from c9c3321257e1b95be9b375f811fb250162af8d39, before a85d39f14aa8a71e29cfb5eb5de02878a8779898 affected from c9c3321257e1b95be9b375f811fb250162af8d39, before 28addf029417d53b1df062b4c87feb7bc033cb5f affected from c9c3321257e1b95be9b375f811fb250162af8d39, before ec791d8149ff60c40ad2074af3b92a39c916a03f
Other versions: unaffected
|
| Linux |
affected 4.9 unaffected before 4.9 unaffected from 5.4.278 up to and including 5.4.* unaffected from 5.10.153 up to and including 5.10.* unaffected from 5.15.77 up to and including 5.15.* unaffected from 6.0.7 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50865 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50865
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50865
trivy image --scanners vuln IMAGE | grep CVE-2022-50865
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9d04b4d0feee12bce6bfe37f30d8e953d3c30368 git.kernel.org
- https://git.kernel.org/stable/c/4f23cb2be530785db284a685d1b1c30224d8a538 git.kernel.org
- https://git.kernel.org/stable/c/a85d39f14aa8a71e29cfb5eb5de02878a8779898 git.kernel.org
- https://git.kernel.org/stable/c/28addf029417d53b1df062b4c87feb7bc033cb5f git.kernel.org
- https://git.kernel.org/stable/c/ec791d8149ff60c40ad2074af3b92a39c916a03f git.kernel.org
Source: the record CVE-2022-50865 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse