CVE-2022-50865

tcp: fix a signed-integer-overflow bug in tcp_add_backlog()

State
Published
Severity
7.5 High
Published
Dec 30, 2025
Updated
Aug 5, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c9c3321257e1b95be9b375f811fb250162af8d39 to before 9d04b4d0feee12bce6bfe37f30d8e953d3c30368Affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to before 4f23cb2be530785db284a685d1b1c30224d8a538Affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to before a85d39f14aa8a71e29cfb5eb5de02878a8779898Affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to before 28addf029417d53b1df062b4c87feb7bc033cb5fAffected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to before ec791d8149ff60c40ad2074af3b92a39c916a03fAffected
LinuxLinux
  • 4.9Affected
  • before 4.9Not affected
  • 5.4.278 through 5.4.*Not affected
  • 5.10.153 through 5.10.*Not affected
  • 5.15.77 through 5.15.*Not affected
  • 6.0.7 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.