# CVE-2025-38018: net/tls: fix kernel panic when alloc\_page failed

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-06-18T09:28:26.443Z
- **Modified:** 2026-08-05T11:58:59.906Z

## Who should check

- Anyone running Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 406d05da26835943568e61bb751c569efae071d4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< a11b8c0be6acd0505a58ff40d474bd778b25b93a; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 5f1f833cb388592bb46104463a1ec1b7c41975b6; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 491deb9b8c4ad12fe51d554a69b8165b9ef9429f
- Anyone running Linux 6.0

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/tls: fix kernel panic when alloc\_page failed

We cannot set frag\_list to NULL pointer when alloc\_page failed.
It will be used in tls\_strp\_check\_queue\_ok when the next time
tls\_strp\_read\_sock is called.

This is because we don't reset full\_len in tls\_strp\_flush\_anchor\_copy()
so the recv path will try to continue handling the partial record
on the next call but we dettached the rcvq from the frag list.
Alternative fix would be to reset full\_len.

Unable to handle kernel NULL pointer dereference
at virtual address 0000000000000028
 Call trace:
 tls\_strp\_check\_rcv+0x128/0x27c
 tls\_strp\_data\_ready+0x34/0x44
 tls\_data\_ready+0x3c/0x1f0
 tcp\_data\_ready+0x9c/0xe4
 tcp\_data\_queue+0xf6c/0x12d0
 tcp\_rcv\_established+0x52c/0x798

## Affected and fixed versions

- Linux: \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 406d05da26835943568e61bb751c569efae071d4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< a11b8c0be6acd0505a58ff40d474bd778b25b93a; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 5f1f833cb388592bb46104463a1ec1b7c41975b6; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 491deb9b8c4ad12fe51d554a69b8165b9ef9429f (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 491deb9b8c4ad12fe51d554a69b8165b9ef9429f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38018.md
Affected: Linux >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 406d05da26835943568e61bb751c569efae071d4; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < a11b8c0be6acd0505a58ff40d474bd778b25b93a; >= 84c61fe1a75b4255df1e1e7…
Fixed in: Linux 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4, Linux 406d05da26835943568e61bb751c569efae071d4, Linux 5f1f833cb388592bb46104463a1ec1b7c41975b6, Linux 491deb9b8c4ad12fe51d554a69b8165b9ef9429f

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-38018 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 406d05da26835943568e61bb751c569efae071d4; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< a11b8c0be6acd0505a58ff40d474bd778b25b93a; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 5f1f833cb388592bb46104463a1ec1b7c41975b6; \>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \< 491deb9b8c4ad12fe51d554a69b8165b9ef9429f; Linux 6.0.

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

Yes. Fixed in Linux 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4, Linux 406d05da26835943568e61bb751c569efae071d4, Linux 5f1f833cb388592bb46104463a1ec1b7c41975b6, Linux 491deb9b8c4ad12fe51d554a69b8165b9ef9429f. Upgrade Linux to 491deb9b8c4ad12fe51d554a69b8165b9ef9429f or later.

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

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/8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4>
- patch: <https://git.kernel.org/stable/c/406d05da26835943568e61bb751c569efae071d4>
- patch: <https://git.kernel.org/stable/c/a11b8c0be6acd0505a58ff40d474bd778b25b93a>
- patch: <https://git.kernel.org/stable/c/5f1f833cb388592bb46104463a1ec1b7c41975b6>
- patch: <https://git.kernel.org/stable/c/491deb9b8c4ad12fe51d554a69b8165b9ef9429f>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

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

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