# CVE-2024-35908: tls: get psock ref after taking rxlock to avoid leak

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-19T08:35:01.460Z
- Modified: 2026-06-17T07:35:41.753Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tls: get psock ref after taking rxlock to avoid leak

At the start of tls_sw_recvmsg, we take a reference on the psock, and
then call tls_rx_reader_lock. If that fails, we return directly
without releasing the reference.

Instead of adding a new label, just take the reference after locking
has succeeded, since we don't need it before.

(As written by CVE List.)

## Affected

- Linux Linux: from 4cbc325ed6b4dce4910be06d9d6940a8b919c59b before 30fabe50a7ace3e9d57cf7f9288f33ea408491c8; from 4cbc325ed6b4dce4910be06d9d6940a8b919c59b before f1b7f14130d782433bc98c1e1e41ce6b4d4c3096; from 4cbc325ed6b4dce4910be06d9d6940a8b919c59b before b565d294e3d5aa809566a4d819835da11997d8b3; from 4cbc325ed6b4dce4910be06d9d6940a8b919c59b before 417e91e856099e9b8a42a2520e2255e6afe024be; 6.0 (not affected: before 6.0; from 6.1.85 up to 6.1.*; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.0 before 6.1.85; from 6.2 before 6.6.26; from 6.7 before 6.8.5; 6.9

## References

- <https://git.kernel.org/stable/c/30fabe50a7ace3e9d57cf7f9288f33ea408491c8> (patch)
- <https://git.kernel.org/stable/c/f1b7f14130d782433bc98c1e1e41ce6b4d4c3096> (patch)
- <https://git.kernel.org/stable/c/b565d294e3d5aa809566a4d819835da11997d8b3> (patch)
- <https://git.kernel.org/stable/c/417e91e856099e9b8a42a2520e2255e6afe024be> (patch)

## Sources

- CVE List: [CVE-2024-35908](https://www.cve.org/CVERecord?id=CVE-2024-35908), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-35908](https://nvd.nist.gov/vuln/detail/CVE-2024-35908), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35908 · Whole record: https://cve.day/CVE-2024-35908.json · Rebuilt by cve.day 2026-11-25T22:58:40.596Z
