tcp: fix a signed-integer-overflow bug in tcp_add_backlog()
Published Dec 30, 2025
7.5
HIGHCVSS 3.1
EPSS 0.53%
Description
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 products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 4.9StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<4.9
- Version 5.10.153StatusunaffectedConstraints<=5.10.*
- Version 5.15.77StatusunaffectedConstraints<=5.15.*
- Version 5.4.278StatusunaffectedConstraints<=5.4.*
- Version 6.0.7StatusunaffectedConstraints<=6.0.*
- Version 6.1StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||
| Linux | Linux | affected |
|
No data.
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-553.100.1.el8_10
Fixed · RHSA-2026:1662
Red Hat Enterprise Linux 8
kernel-rt-0:4.18.0-553.100.1.rt7.441.el8_10
Fixed · RHSA-2026:1661
Red Hat Enterprise Linux 8.2 Advanced Update Support
kernel-0:4.18.0-193.187.1.el8_2
Fixed · RHSA-2026:3388
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
kernel-0:4.18.0-305.186.1.el8_4
Fixed · RHSA-2026:3360
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
kernel-0:4.18.0-305.186.1.el8_4
Fixed · RHSA-2026:3360
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
kernel-0:4.18.0-372.179.1.el8_6
Fixed · RHSA-2026:2490
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
kernel-0:4.18.0-372.179.1.el8_6
Fixed · RHSA-2026:2490
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
kernel-0:4.18.0-372.179.1.el8_6
Fixed · RHSA-2026:2490
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
kernel-0:4.18.0-477.130.1.el8_8
Fixed · RHSA-2026:3277
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
kernel-0:4.18.0-477.130.1.el8_8
Fixed · RHSA-2026:3277
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-0:5.14.0-70.165.1.el9_0
Fixed · RHSA-2026:2573
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-rt-0:5.14.0-70.165.1.rt21.237.el9_0
Fixed · RHSA-2026:2577
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
kernel-0:5.14.0-284.155.1.el9_2
Fixed · RHSA-2026:1909
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
kernel-rt-0:5.14.0-284.155.1.rt14.440.el9_2
Fixed · RHSA-2026:1946
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-553.100.1.el8_10 | Fixed | RHSA-2026:1662 |
| Red Hat Enterprise Linux 8 | kernel-rt-0:4.18.0-553.100.1.rt7.441.el8_10 | Fixed | RHSA-2026:1661 |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | kernel-0:4.18.0-193.187.1.el8_2 | Fixed | RHSA-2026:3388 |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | kernel-0:4.18.0-305.186.1.el8_4 | Fixed | RHSA-2026:3360 |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | kernel-0:4.18.0-305.186.1.el8_4 | Fixed | RHSA-2026:3360 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | kernel-0:4.18.0-372.179.1.el8_6 | Fixed | RHSA-2026:2490 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | kernel-0:4.18.0-372.179.1.el8_6 | Fixed | RHSA-2026:2490 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | kernel-0:4.18.0-372.179.1.el8_6 | Fixed | RHSA-2026:2490 |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | kernel-0:4.18.0-477.130.1.el8_8 | Fixed | RHSA-2026:3277 |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | kernel-0:4.18.0-477.130.1.el8_8 | Fixed | RHSA-2026:3277 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-0:5.14.0-70.165.1.el9_0 | Fixed | RHSA-2026:2573 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-rt-0:5.14.0-70.165.1.rt21.237.el9_0 | Fixed | RHSA-2026:2577 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | kernel-0:5.14.0-284.155.1.el9_2 | Fixed | RHSA-2026:1909 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | kernel-rt-0:5.14.0-284.155.1.rt14.440.el9_2 | Fixed | RHSA-2026:1946 |
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
A signed integer overflow in tcp_add_backlog() could occur when computing the backlog limit from sk_rcvbuf and sk_sndbuf, potentially resulting in an incorrect, reduced limit. A remote peer can trigger this condition by sending network traffic that stresses the TCP backlog, leading to premature packet drops and degraded service availability. This issue is a typical network robustness bug, as the integer overflow only affects internal backlog limit calculations and can at most cause packet drops or limited service degradation (DoS), without providing a realistic path to host crashes, memory corruption, privilege escalation, or code execution.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References (10)
- https://access.redhat.com/security/cve/CVE-2022-50865 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2426226 Issue Tracking
- https://git.kernel.org/stable/c/28addf029417d53b1df062b4c87feb7bc033cb5f
- https://git.kernel.org/stable/c/4f23cb2be530785db284a685d1b1c30224d8a538
- https://git.kernel.org/stable/c/9d04b4d0feee12bce6bfe37f30d8e953d3c30368
- https://git.kernel.org/stable/c/a85d39f14aa8a71e29cfb5eb5de02878a8779898
- https://git.kernel.org/stable/c/ec791d8149ff60c40ad2074af3b92a39c916a03f
- https://lore.kernel.org/linux-cve-announce/2025123049-CVE-2022-50865-281e@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-50865
- https://www.cve.org/CVERecord?id=CVE-2022-50865
Change history (0)
No recorded changes yet.