net: tls: avoid hanging tasks on the tx_lock
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 79ffe6087e9145d2377385cac48d0d6a6b4225a5 · < f3221361dc85d4de22586ce8441ec2c67b454f5d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: tls: avoid hanging tasks on the tx_lock
syzbot sent a hung task report and Eric explains that adversarial receiver may keep RWIN at 0 for a long time, so we are not guaranteed to make forward progress. Thread which took tx_lock and went to sleep may not release tx_lock for hours. Use interruptible sleep where possible and reschedule the work if it can't take the lock.
Testing: existing selftest passes
From the CVE record · Linux
The Linux kernel's network TLS transmit path can leave a task holding tx_lock while it sleeps. An adversarial network receiver that keeps its receive window at zero can prevent progress, potentially leaving tasks hung for hours.
Engineers running Linux kernels with network TLS enabled should check whether their kernel includes the fix; affected versions were not provided.