CVE-2025-38463
Last modified
CVE-2025-38463 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: tcp: Correct signedness in skb remaining space calculation Syzkaller reported a bug [1] where sk->sk_forward_alloc can overflow. When we send data, if an skb exists at the tail of the write queue, the kernel will attempt to append the new data to that skb. However, the code that checks for available space in the skb is flawed: ''' copy = size_goal - skb->len ''' The types of the variables involved are: ''' copy: ssize_t (s64 on 64-bit systems) size_goal: int skb->len: unsigned int ''' Due to C's type promotion rules, the signed size_goal is converted to an unsigned int to match skb->len before the subtraction. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: tcp: Correct signedness in skb remaining space calculation Syzkaller reported a bug [1] where sk->sk_forward_alloc can overflow. When we send data, if an skb exists at the tail of the write queue, the kernel will attempt to append the new data to that skb. However, the code that checks for available space in the skb is flawed: ''' copy = size_goal - skb->len ''' The types of the variables involved are: ''' copy: ssize_t (s64 on 64-bit systems) size_goal: int skb->len: unsigned int ''' Due to C's type promotion rules, the signed size_goal is converted to an unsigned int to match skb->len before the subtraction. The result is an unsigned int. When this unsigned int result is then assigned to the s64 copy variable, it is zero-extended, preserving its non-negative value. Consequently, copy is always >= 0. Assume we are sending 2GB of data and size_goal has been adjusted to a value smaller than skb->len. The subtraction will result in copy holding a very large positive integer. In the subsequent logic, this large value is used to update sk->sk_forward_alloc, which can easily cause it to overflow. The syzkaller reproducer uses TCP_REPAIR to reliably create this condition. However, this can also occur in real-world scenarios. The tcp_bound_to_half_wnd() function can also reduce size_goal to a small value. This would cause the subsequent tcp_wmem_schedule() to set sk->sk_forward_alloc to a value close to INT_MAX. Further memory allocation requests would then cause sk_forward_alloc to wrap around and become negative. [1]: https://syzkaller.appspot.com/bug?extid=de6565462ab540f50e47
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.5, < 6.6.99 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.39 | — |
| Linux | Linux Kernel | >= 6.13, < 6.15.7 | — |
| Linux | Linux Kernel | 6.16 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38463?
How severe is CVE-2025-38463?
How do I fix CVE-2025-38463?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38458In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38459In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3846A vulnerability was found in markparticle WebServer up to 1.…9.8
- CVE-2025-38460In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38461In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38462In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38464In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38465In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38466In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38467In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38468In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38469In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38463?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
