Bug 2334423 (CVE-2024-53206) - CVE-2024-53206 kernel: tcp: Fix use-after-free of nreq in reqsk_timer_handler().
Summary: CVE-2024-53206 kernel: tcp: Fix use-after-free of nreq in reqsk_timer_handler().
Keywords:
Status: NEW
Alias: CVE-2024-53206
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 14:06 UTC by OSIDB Bzimport
Modified: 2025-01-02 17:30 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 14:06:01 UTC
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().

Comment 1 Avinash Hanwate 2024-12-28 09:44:20 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122728-CVE-2024-53206-d85d@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.