tcp: Fix potential UAF in reqsk_timer_handler().
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f7fba81b00699360f96ed7d9a47b8c801e74c6f9, Kernel 4.2, Kernel 97c8a3c1f73d828de43a5a88e8a9a143efb2b661 and 3 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=83fccfc3940c4a2db90fd7e7079f5b465cd8c6af <f7fba81b00699360f96ed7d9a47b8c801e74c6f9, >=4.1.11 <4.2, >=83fccfc3940c4a2db90fd7e7079f5b465cd8c6af <97c8a3c1f73d828de43a5a88e8a9a143efb2b661, >=83fccfc3940c4a2db90fd7e7079f5b465cd8c6af <b3b56e95f6fad7fa7281450b443e861d82616fdb, =4.2, =d3a1196bfc462943694623412d8e03aaf172bdc1 | f7fba81b00699360f96ed7d9a47b8c801e74c6f9, 4.2, 97c8a3c1f73d828de43a5a88e8a9a143efb2b661, b3b56e95f6fad7fa7281450b443e861d82616fdb |
| linux-kernel: Kernel | >=4.2.0 <6.12.117, >=6.13.0 <6.18.61, >=4.1.11 <4.2 | 6.12.117, 6.18.61, 4.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket