net/tls: fix kernel panic when alloc_page failed (Linux Linux)

CVE-2025-38018
HIGH 7.5

At a glance

Source
NVD
EPSS
EPSS 0.48 % · percentile 42 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 84c61fe1a75b4255df1e1e7c054c9e6d048da417 < 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 ; affected 84c61fe1a75b4255df1e1e7c054c9e6d048da417 < 406d05da26835943568e61bb751c569efae071d4 ; affected 84c61fe1a75b4255df1e1e7c054c9e6d048da417 < a11b8c0be6acd0505a58ff40d474bd778b25b93a ; affected 84c61fe1a75b4255df1e1e7c054c9e6d048da417 < 5f1f833cb388592bb46104463a1ec1b7c41975b6 ; affected 84c61fe1a75b4255df1e1e7c054c9e6d048da417 < 491deb9b8c4ad12fe51d554a69b8165b9ef9429f
Linux · Linuxaffected 6.0 ; unaffected 0 < 6.0 ; unaffected 6.1.140 ≤ 6.1.* ; unaffected 6.6.92 ≤ 6.6.* ; unaffected 6.12.30 ≤ 6.12.* ; unaffected 6.14.8 ≤ 6.14.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD