# CVE-2025-38018: net/tls: fix kernel panic when alloc_page failed

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-06-18T09:28:26.443Z
- Modified: 2026-08-05T11:58:59.906Z
- Weaknesses: CWE-476
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4; from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 406d05da26835943568e61bb751c569efae071d4; from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before a11b8c0be6acd0505a58ff40d474bd778b25b93a; from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 5f1f833cb388592bb46104463a1ec1b7c41975b6; from 84c61fe1a75b4255df1e1e7c054c9e6d048da417 before 491deb9b8c4ad12fe51d554a69b8165b9ef9429f; 6.0 (not affected: before 6.0; from 6.1.140 up to 6.1.*; from 6.6.92 up to 6.6.*; from 6.12.30 up to 6.12.*; from 6.14.8 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.0 before 6.1.140; from 6.2 before 6.6.92; from 6.7 before 6.12.30; from 6.13 before 6.14.8; 6.15
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38018](https://www.cve.org/CVERecord?id=CVE-2025-38018), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38018](https://nvd.nist.gov/vuln/detail/CVE-2025-38018), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38018 · Whole record: https://cve.day/CVE-2025-38018.json · Rebuilt by cve.day 2026-11-25T22:58:59.340Z
