# CVE-2025-38463: tcp: Correct signedness in skb remaining space calculation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-191
- **Published:** 2025-07-25T15:27:45.975Z
- **Modified:** 2026-08-05T12:02:05.755Z

## Who should check

- Anyone running Linux \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 81373cd1d72d87c7d844d4454a526b8f53e72d00; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 62e6160cfb5514787bda833d466509edc38fde23; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< d3a5f2871adc0c61c61869f37f3e697d97f03d8c
- Anyone running Linux 6.5

## 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

## Affected and fixed versions

- Linux: \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 81373cd1d72d87c7d844d4454a526b8f53e72d00; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 62e6160cfb5514787bda833d466509edc38fde23; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< d3a5f2871adc0c61c61869f37f3e697d97f03d8c (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38463. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38463.md
Affected: Linux >= 270a1c3de47e49dd2fc18f48e46b101e48050e78, < 81373cd1d72d87c7d844d4454a526b8f53e72d00; >= 270a1c3de47e49dd2fc18f48e46b101e48050e78, < 62e6160cfb5514787bda833d466509edc38fde23; >= 270a1c3de47e49dd2fc18f48e46b101e48050e78, < 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7; >= 270a1c3de47e49dd2fc18f4…
Fixed in: Linux 81373cd1d72d87c7d844d4454a526b8f53e72d00, Linux 62e6160cfb5514787bda833d466509edc38fde23, Linux 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38463 being exploited?

There is no confirmed exploitation: CVE-2025-38463 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38463?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38463?

Linux \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 81373cd1d72d87c7d844d4454a526b8f53e72d00; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 62e6160cfb5514787bda833d466509edc38fde23; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7; \>= 270a1c3de47e49dd2fc18f48e46b101e48050e78, \< d3a5f2871adc0c61c61869f37f3e697d97f03d8c; Linux 6.5.

### Is there a fix for CVE-2025-38463?

Yes. Fixed in Linux 81373cd1d72d87c7d844d4454a526b8f53e72d00, Linux 62e6160cfb5514787bda833d466509edc38fde23, Linux 9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38463?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/81373cd1d72d87c7d844d4454a526b8f53e72d00>
- patch: <https://git.kernel.org/stable/c/62e6160cfb5514787bda833d466509edc38fde23>
- patch: <https://git.kernel.org/stable/c/9f164fa6bb09fbcc60fa5c3ff551ce9eec1befd7>
- patch: <https://git.kernel.org/stable/c/d3a5f2871adc0c61c61869f37f3e697d97f03d8c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38463>

HTML: <https://flawdb.com/CVE-2025-38463> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38463>
