CVE-2022-50865
NoneCVSS
—
EPSS
0.5%
Published
Dec 30, 2025
CISA due date
—
Cloudanix analysis
A calculation error in the Linux network code could cause systems to become unstable when handling certain network traffic volumes.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Theoretical
- Impact
- Other
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Signed integer overflow in tcp_add_backlog() when sk_rcvbuf + sk_sndbuf + 64*1024 exceeds INT_MAX, due to int-typed socket buffer fields in struct sock.
Why it matters to the business
Unpatched kernels risk network stack instability or crashes under high buffer configurations, disrupting connectivity and requiring emergency reboots or maintenance windows.
How an attack unfolds
An attacker establishes TCP connections and manipulates socket buffer settings via system calls or packet patterns that force tcp_add_backlog to compute an overflowing limit value, potentially leading to memory corruption.
How to fix it
Apply the upstream fix by updating to a kernel containing commit 9d04b4d0feee12bce6bfe37f30d8e953d3c30368 or later stable releases; rebuild and reboot affected systems.
How to confirm the fix worked
Verify kernel source or running version includes commit 9d04b4d0feee12bce6bfe37f30d8e953d3c30368; test tcp_add_backlog paths with large buffer values to confirm no overflow occurs.
Typical attack path
- Identify target Linux kernel version lacking the fix commit
- Establish TCP sessions and tune socket options to maximize sk_rcvbuf and sk_sndbuf
- Trigger backlog queue processing with crafted ACK or data packets
- Induce integer overflow during limit calculation in tcp_add_backlog
How to detect it
Review kernel crash logs for signs of integer overflow or memory corruption in TCP backlog handling; correlate with unusual socket buffer configurations in process traces.
What your security team should do
- Prioritize kernel updates on all exposed Linux systems within standard change windows
- Monitor upstream stable branches for additional backports of the fix
- Audit custom kernel builds for buffer calculation changes
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Linux | Kernel | 4.9.0 | 5.4.278 |
Related vulnerabilities
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel