CVE-2024-53206
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 8459d61fbf24967839a70235165673148c7c7f17 before 2dcc86fefe09ac853158afd96b60d544af115dc5, from 5071beb59ee416e8ab456ac8647a4dabcda823b1 before 9a3c1ad93e6fba67b3a637cfa95a57a6685e4908, from 997ae8da14f1639ce6fb66a063dab54031cd61b3 before 65ed89cad1f57034c256b016e89e8c0a4ec7c65b, from 51e34db64f4e43c7b055ccf881b7f3e0c31bb26d before d0eb14cb8c08b00c36a3d5dc57a6f428b301f721, from e8c526f2bdf1845bedaf6a478816a3d06fa78b8f before 6d845028609a4af0ad66f499ee0bd5789122b067, from e8c526f2bdf1845bedaf6a478816a3d06fa78b8f before c31e72d021db2714df03df6c42855a1db592716c, 106e457953315e476b3642ef24be25ed862aaba3, c964bf65f80a14288d767023a1b300b30f5b9cd0 and 7 more
Not affected: before 6.12, from 5.15.174 up to 5.15.*, from 6.1.120 up to 6.1.*, from 6.6.64 up to 6.6.*, from 6.11.11 up to 6.11.*, from 6.12.2 up to 6.12.*
CVE List
linux linux_kernelfrom 5.15.170 before 5.15.174, from 6.1.115 before 6.1.120, from 6.6.59 before 6.6.64, from 6.11.6 before 6.11.11, from 6.12 before 6.12.2NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tcp: Se corrige el use-after-free de nreq en reqsk_timer_handler(). el commit citada reemplazó inet_csk_reqsk_queue_drop_and_put() con __inet_csk_reqsk_queue_drop() y reqsk_put() en reqsk_timer_handler(). Luego, oreq se debe pasar a reqsk_put() en lugar de req; de lo contrario, el use-after-free de nreq podría ocurrir cuando se migra reqsk pero el intento de reintento falla (por ejemplo, debido al tiempo de espera). Pasemos oreq a reqsk_put().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53206 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-53206 changed 2026-08-04Public domain