What’s Vulnerable › Vulnerabilities

CVE-2024-53206: tcp: Fix use-after-free of nreq in reqsk_timer_handler().

Description

In the Linux kernel, the following vulnerability has been resolved: tcp: Fix use-after-free of nreq in reqsk_timer_handler(). The cited commit replaced inet_csk_reqsk_queue_drop_and_put() with __inet_csk_reqsk_queue_drop() and reqsk_put() in reqsk_timer_handler(). Then, oreq should be passed to reqsk_put() instead of req; otherwise use-after-free of nreq could happen when reqsk is migrated but the retry attempt failed (e.g. due to timeout). Let's pass oreq to reqsk_put().

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.174, 6.1.120, 6.11.11, 6.12.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-53206 or the next vulnerability affects your stack