{"id":"CVE-2022-50865","aliases":["CVE-2022-50865"],"related":[],"kind":"vulnerability","state":"published","title":"tcp: fix a signed-integer-overflow bug in tcp_add_backlog()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix a signed-integer-overflow bug in tcp_add_backlog()\n\nThe type of sk_rcvbuf and sk_sndbuf in struct sock is int, and\nin tcp_add_backlog(), the variable limit is caculated by adding\nsk_rcvbuf, sk_sndbuf and 64 * 1024, it may exceed the max value\nof int and overflow. This patch reduces the limit budget by\nhalving the sndbuf to solve this issue since ACK packets are much\nsmaller than the payload.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: fix a signed-integer-overflow bug in tcp_add_backlog()\n\nThe type of sk_rcvbuf and sk_sndbuf in struct sock is int, and\nin tcp_add_backlog(), the variable limit is caculated by adding\nsk_rcvbuf, sk_sndbuf and 64 * 1024, it may exceed the max value\nof int and overflow. This patch reduces the limit budget by\nhalving the sndbuf to solve this issue since ACK packets are much\nsmaller than the payload.","source":"cvelist"}],"published":"2025-12-30T12:15:37.150Z","modified":"2026-08-05T08:59:52.038Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c9c3321257e1b95be9b375f811fb250162af8d39","fixed":"9d04b4d0feee12bce6bfe37f30d8e953d3c30368","status":"affected"},{"type":"git","introduced":"c9c3321257e1b95be9b375f811fb250162af8d39","fixed":"4f23cb2be530785db284a685d1b1c30224d8a538","status":"affected"},{"type":"git","introduced":"c9c3321257e1b95be9b375f811fb250162af8d39","fixed":"a85d39f14aa8a71e29cfb5eb5de02878a8779898","status":"affected"},{"type":"git","introduced":"c9c3321257e1b95be9b375f811fb250162af8d39","fixed":"28addf029417d53b1df062b4c87feb7bc033cb5f","status":"affected"},{"type":"git","introduced":"c9c3321257e1b95be9b375f811fb250162af8d39","fixed":"ec791d8149ff60c40ad2074af3b92a39c916a03f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"5.4.278","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.153","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.77","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.7","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9d04b4d0feee12bce6bfe37f30d8e953d3c30368","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f23cb2be530785db284a685d1b1c30224d8a538","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a85d39f14aa8a71e29cfb5eb5de02878a8779898","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28addf029417d53b1df062b4c87feb7bc033cb5f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec791d8149ff60c40ad2074af3b92a39c916a03f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-16T15:51:41.874Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50865","url":"https://www.cve.org/CVERecord?id=CVE-2022-50865","licence":"CVE Terms of Use","modified":"2026-08-05T08:59:52.038Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50865","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50865","licence":"Public domain","modified":"2026-08-04T10:18:24.797Z"}],"updatedAt":"2026-11-25T22:58:21.384Z","epss":{"score":0.00566,"percentile":0.48348,"date":"2026-12-02T12:00:21.000Z"}}