FlawAtlas
Search the atlas
CVE-2025-39682 Not scored

tls: fix handling of zero-length records on the rx_list

In the Linux kernel, the following vulnerability has been resolved: tls: fix handling of zero-length records on the rx_list Each recvmsg() call must process either - only contiguous DATA records (any number of them) - one non-DATA record If the next record has different type than what has already been processed we break out of the main processing loop. If the record has already been decrypted (which may be the case for TLS 1.3 where we don't know type until decryption) we queue the pending record to the rx_list. Next recvmsg() will pick it up from there. Queuing the skb to rx_list after zero-copy decrypt is not possible, since in that case we decrypted directly to the user space buffer, and we don't have an skb to queue (darg.skb points to the ciphertext skb for access to metadata like length). Only data records are allowed zero-copy, and we break the processing loop after each non-data record. So we should never zero-copy and then find out that the record type has changed. The corner case we missed is when the initial record comes from rx_list, and it's zero length.

Exploit probability 0.2%
Published September 5, 2025
Required by Not available
Last source change July 15, 2026

02 / AFFECTED SOFTWARE

Affected packages

Android :linux_kernel:

1 explicit affected versions

Linux Kernel
Unknown Unknown

03 / CONNECTIONS

Connected vulnerabilities

related ALSA-2025:16880
related ALSA-2025:16904
related OPENSUSE-SU-2025:20081-1
related SUSE-SU-2025:03600-1
related SUSE-SU-2025:03601-1
related SUSE-SU-2025:03602-1
related SUSE-SU-2025:03633-1
related SUSE-SU-2025:03634-1
related SUSE-SU-2025:20851-1
related SUSE-SU-2025:20861-1
related SUSE-SU-2025:20870-1
related SUSE-SU-2025:20898-1
related SUSE-SU-2025:21074-1
related SUSE-SU-2025:21139-1
related SUSE-SU-2025:21179-1
related SUSE-SU-2025:3725-1
related SUSE-SU-2025:3751-1
related SUSE-SU-2026:0144-1
related SUSE-SU-2026:0145-1
related SUSE-SU-2026:0146-1
related SUSE-SU-2026:0148-1
related SUSE-SU-2026:0171-1
related SUSE-SU-2026:0202-1
related SUSE-SU-2026:0203-1
related SUSE-SU-2026:0209-1
related SUSE-SU-2026:0262-1
related SUSE-SU-2026:0269-1
related SUSE-SU-2026:0270-1
related SUSE-SU-2026:0274-1
related SUSE-SU-2026:0283-1
related SUSE-SU-2026:0284-1
related SUSE-SU-2026:20149-1
related SUSE-SU-2026:20164-1
related SUSE-SU-2026:20169-1
related SUSE-SU-2026:20248-1
related SUSE-SU-2026:20249-1
related SUSE-SU-2026:20250-1
related SUSE-SU-2026:20251-1
related SUSE-SU-2026:20252-1
related SUSE-SU-2026:20253-1
related SUSE-SU-2026:20254-1
related SUSE-SU-2026:20255-1
related SUSE-SU-2026:20256-1
related SUSE-SU-2026:20257-1
related SUSE-SU-2026:20258-1
related SUSE-SU-2026:20259-1
related SUSE-SU-2026:20260-1
related SUSE-SU-2026:20261-1
related SUSE-SU-2026:20264-1
related SUSE-SU-2026:20265-1
related SUSE-SU-2026:20266-1
related SUSE-SU-2026:20376-1
related SUSE-SU-2026:20377-1
related SUSE-SU-2026:20378-1
related SUSE-SU-2026:20379-1
related SUSE-SU-2026:20380-1
related SUSE-SU-2026:20381-1
related SUSE-SU-2026:20382-1
related SUSE-SU-2026:20385-1
related SUSE-SU-2026:20392-1
related SUSE-SU-2026:20393-1
related SUSE-SU-2026:20394-1
related SUSE-SU-2026:20395-1
related SUSE-SU-2026:20396-1
related SUSE-SU-2026:20397-1
related SUSE-SU-2026:20398-1
related SUSE-SU-2026:20399-1
related SUSE-SU-2026:20400-1

04 / EVIDENCE

Source records

Open Source Vulnerabilities ASB-A-440544511

In tls_sw_recvmsg of tls_sw.c, there is a possible use after free due to an incorrect bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

View original source
Open Source Vulnerabilities CVE-2025-39682

In the Linux kernel, the following vulnerability has been resolved: tls: fix handling of zero-length records on the rx_list Each recvmsg() call must process either - only contiguous DATA records (any number of them) - one non-DATA record If the next record has different type than what has already been processed we break out of the main processing loop. If the record has already been decrypted (which may be the case for TLS 1.3 where we don't know type until decryption) we queue the pending record to the rx_list. Next recvmsg() will pick it up from there. Queuing the skb to rx_list after zero-copy decrypt is not possible, since in that case we decrypted directly to the user space buffer, and we don't have an skb to queue (darg.skb points to the ciphertext skb for access to metadata like length). Only data records are allowed zero-copy, and we break the processing loop after each non-data record. So we should never zero-copy and then find out that the record type has changed. The corner case we missed is when the initial record comes from rx_list, and it's zero length.

View original source

05 / REFERENCES

Further evidence