{"id":"CVE-2025-38616","summary":"tls: handle data disappearing from under the TLS ULP","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: handle data disappearing from under the TLS ULP\n\nTLS expects that it owns the receive queue of the TCP socket.\nThis cannot be guaranteed in case the reader of the TCP socket\nentered before the TLS ULP was installed, or uses some non-standard\nread API (eg. zerocopy ones). Replace the WARN_ON() and a buggy\nearly exit (which leaves anchor pointing to a freed skb) with real\nerror handling. Wipe the parsing state and tell the reader to retry.\n\nWe already reload the anchor every time we (re)acquire the socket lock,\nso the only condition we need to avoid is an out of bounds read\n(not having enough bytes in the socket for previously parsed record len).\n\nIf some data was read from under TLS but there's enough in the queue\nwe'll reload and decrypt what is most likely not a valid TLS record.\nLeading to some undefined behavior from TLS perspective (corrupting\na stream? missing an alert? missing an attack?) but no kernel crash\nshould take place.","modified":"2026-03-20T12:42:56.803351Z","published":"2025-08-22T13:01:23.217Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03601-1","SUSE-SU-2025:03633-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21085-1","SUSE-SU-2025:21086-1","SUSE-SU-2025:21087-1","SUSE-SU-2025:21088-1","SUSE-SU-2025:21089-1","SUSE-SU-2025:21090-1","SUSE-SU-2025:21091-1","SUSE-SU-2025:21092-1","SUSE-SU-2025:21093-1","SUSE-SU-2025:21094-1","SUSE-SU-2025:21095-1","SUSE-SU-2025:21096-1","SUSE-SU-2025:21097-1","SUSE-SU-2025:21098-1","SUSE-SU-2025:21099-1","SUSE-SU-2025:21100-1","SUSE-SU-2025:21101-1","SUSE-SU-2025:21102-1","SUSE-SU-2025:21103-1","SUSE-SU-2025:21104-1","SUSE-SU-2025:21107-1","SUSE-SU-2025:21108-1","SUSE-SU-2025:21109-1","SUSE-SU-2025:21110-1","SUSE-SU-2025:21111-1","SUSE-SU-2025:21112-1","SUSE-SU-2025:21113-1","SUSE-SU-2025:21114-1","SUSE-SU-2025:21115-1","SUSE-SU-2025:21116-1","SUSE-SU-2025:21117-1","SUSE-SU-2025:21118-1","SUSE-SU-2025:21119-1","SUSE-SU-2025:21120-1","SUSE-SU-2025:21121-1","SUSE-SU-2025:21122-1","SUSE-SU-2025:21123-1","SUSE-SU-2025:21124-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3725-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4160-1","SUSE-SU-2025:4161-1","SUSE-SU-2025:4164-1","SUSE-SU-2025:4167-1","SUSE-SU-2025:4169-1","SUSE-SU-2025:4200-1","SUSE-SU-2025:4201-1","SUSE-SU-2025:4208-1","SUSE-SU-2025:4261-1","SUSE-SU-2025:4262-1","SUSE-SU-2025:4265-1","SUSE-SU-2025:4268-1","SUSE-SU-2025:4269-1","SUSE-SU-2025:4275-1","SUSE-SU-2025:4282-1","SUSE-SU-2025:4302-1","SUSE-SU-2025:4306-1","SUSE-SU-2025:4311-1","SUSE-SU-2026:20149-1","SUSE-SU-2026:20164-1","SUSE-SU-2026:20169-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38616.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6db015fc4b5d5f63a64a193f65d98da3a7fc811d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db3658a12d5ec4db7185ae7476151a50521b7207"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb0336f213fe88bbdb7d2b19c9c9ec19245a3155"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1fe99919f629f980d0b8a7ff16950bffe06a859"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38616.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38616"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417"},{"fixed":"f1fe99919f629f980d0b8a7ff16950bffe06a859"},{"fixed":"eb0336f213fe88bbdb7d2b19c9c9ec19245a3155"},{"fixed":"db3658a12d5ec4db7185ae7476151a50521b7207"},{"fixed":"2fb97ed9e2672b4f6e24ce206ac1a875ce4bcb38"},{"fixed":"6db015fc4b5d5f63a64a193f65d98da3a7fc811d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38616.json"}}],"schema_version":"1.7.5"}