CVE-2024-53206

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

State
Published
Severity
9.8 Critical
Published
Dec 27, 2024
Updated
Aug 5, 2026
Reserved
Nov 19, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 8459d61fbf24967839a70235165673148c7c7f17 to before 2dcc86fefe09ac853158afd96b60d544af115dc5Affected
  • 5071beb59ee416e8ab456ac8647a4dabcda823b1 to before 9a3c1ad93e6fba67b3a637cfa95a57a6685e4908Affected
  • 997ae8da14f1639ce6fb66a063dab54031cd61b3 to before 65ed89cad1f57034c256b016e89e8c0a4ec7c65bAffected
  • 51e34db64f4e43c7b055ccf881b7f3e0c31bb26d to before d0eb14cb8c08b00c36a3d5dc57a6f428b301f721Affected
  • e8c526f2bdf1845bedaf6a478816a3d06fa78b8f to before 6d845028609a4af0ad66f499ee0bd5789122b067Affected
  • e8c526f2bdf1845bedaf6a478816a3d06fa78b8f to before c31e72d021db2714df03df6c42855a1db592716cAffected
  • 106e457953315e476b3642ef24be25ed862aaba3Affected
  • c964bf65f80a14288d767023a1b300b30f5b9cd0Affected
  • 5.15.170 to before 5.15.174Affected
  • 6.1.115 to before 6.1.120Affected
  • 6.6.59 to before 6.6.64Affected
  • 6.11.6 to before 6.11.11Affected
  • 5.4.293 to before 5.5Affected
  • 5.10.237 to before 5.11Affected
LinuxLinux
  • 6.12Affected
  • before 6.12Not affected
  • 5.15.174 through 5.15.*Not affected
  • 6.1.120 through 6.1.*Not affected
  • 6.6.64 through 6.6.*Not affected
  • 6.11.11 through 6.11.*Not affected
  • 6.12.2 through 6.12.*Not affected
  • 6.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.