Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2022-50865

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • c9c3321257e1b95be9b375f811fb250162af8d39 to < 9d04b4d0feee12bce6bfe37f30d8e953d3c30368affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to < 4f23cb2be530785db284a685d1b1c30224d8a538affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to < a85d39f14aa8a71e29cfb5eb5de02878a8779898affected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to < 28addf029417d53b1df062b4c87feb7bc033cb5faffected
  • c9c3321257e1b95be9b375f811fb250162af8d39 to < ec791d8149ff60c40ad2074af3b92a39c916a03faffected

Linux Linux

Default version status: affected

  • 4.9affected
  • 0 to < 4.9unaffected
  • 5.4.278 to ≤ 5.4.*unaffected
  • 5.10.153 to ≤ 5.10.*unaffected
  • 5.15.77 to ≤ 5.15.*unaffected
  • 6.0.7 to ≤ 6.0.*unaffected
  • 6.1 to ≤ *unaffected

References