CVE-2025-38018

net/tls: fix kernel panic when alloc_page failed

State
Published
Severity
7.5 High
Published
Jun 18, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 84c61fe1a75b4255df1e1e7c054c9e6d048da417 to before 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4Affected
  • 84c61fe1a75b4255df1e1e7c054c9e6d048da417 to before 406d05da26835943568e61bb751c569efae071d4Affected
  • 84c61fe1a75b4255df1e1e7c054c9e6d048da417 to before a11b8c0be6acd0505a58ff40d474bd778b25b93aAffected
  • 84c61fe1a75b4255df1e1e7c054c9e6d048da417 to before 5f1f833cb388592bb46104463a1ec1b7c41975b6Affected
  • 84c61fe1a75b4255df1e1e7c054c9e6d048da417 to before 491deb9b8c4ad12fe51d554a69b8165b9ef9429fAffected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.140 through 6.1.*Not affected
  • 6.6.92 through 6.6.*Not affected
  • 6.12.30 through 6.12.*Not affected
  • 6.14.8 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.