Linux
tcp: Fix potential UAF in reqsk_timer_handler().
In the Linux kernel, the following vulnerability has been resolved: tcp: Fix potential UAF in reqsk_timer_handler(). When TCP socket migration fails at inet_ehash_insert() in reqsk_timer_handler(), we jump to the no_ownership: label and free the new reqsk immediately with __reqsk_free(). Thus, we must stop the new reqsk's timer before jumping to the label, but the timer might be missed since the cited commit, resulting in UAF. As we are in the original reqsk's timer context, we can safely call timer_delete_sync() for the new reqsk. Let's pass false to __inet_csk_reqsk_queue_drop() to stop the new reqsk's timer.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af, < f7fba81b00699360f96ed7d9a47b8c801e74c6f9
- >= 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af, < b3b56e95f6fad7fa7281450b443e861d82616fdb
- >= 83fccfc3940c4a2db90fd7e7079f5b465cd8c6af, < 97c8a3c1f73d828de43a5a88e8a9a143efb2b661
- d3a1196bfc462943694623412d8e03aaf172bdc1
- >= 4.1.11, < 4.2
Fixed in f7fba81b00699360f96ed7d9a47b8c801e74c6f9, b3b56e95f6fad7fa7281450b443e861d82616fdb, 97c8a3c1f73d828de43a5a88e8a9a143efb2b661, 4.2
- 4.2
Fixed in 0, 6.12.117, 6.18.61, 7.1
Mitigation
Upgrade Linux to f7fba81b00699360f96ed7d9a47b8c801e74c6f9 or b3b56e95f6fad7fa7281450b443e861d82616fdb or 97c8a3c1f73d828de43a5a88e8a9a143efb2b661 or 4.2 or later.
Upgrade Linux to 0 or 6.12.117 or 6.18.61 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.