{"id":"CVE-2022-50865","summary":"tcp: fix a signed-integer-overflow bug in tcp_add_backlog()","details":"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.","modified":"2026-04-02T08:28:48.379424Z","published":"2025-12-30T12:15:37.150Z","related":["ALSA-2026:1661","ALSA-2026:1662","SUSE-SU-2026:0473-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50865.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/28addf029417d53b1df062b4c87feb7bc033cb5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f23cb2be530785db284a685d1b1c30224d8a538"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d04b4d0feee12bce6bfe37f30d8e953d3c30368"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a85d39f14aa8a71e29cfb5eb5de02878a8779898"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec791d8149ff60c40ad2074af3b92a39c916a03f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50865.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50865"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c9c3321257e1b95be9b375f811fb250162af8d39"},{"fixed":"9d04b4d0feee12bce6bfe37f30d8e953d3c30368"},{"fixed":"4f23cb2be530785db284a685d1b1c30224d8a538"},{"fixed":"a85d39f14aa8a71e29cfb5eb5de02878a8779898"},{"fixed":"28addf029417d53b1df062b4c87feb7bc033cb5f"},{"fixed":"ec791d8149ff60c40ad2074af3b92a39c916a03f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50865.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.9.0"},{"fixed":"5.4.278"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.153"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.77"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50865.json"}}],"schema_version":"1.7.5"}