tipc: fix infinite loop in __tipc_nl_compat_dumpit
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d0796d1ef63deb38147729664691ba3090930b26 · < e740e90ca8e7f70d9eac1aa31a8b3e0e4d32b2ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tipc: fix infinite loop in __tipc_nl_compat_dumpit
cmd->dumpit callback can return a negative errno, causing an infinite loop due to the while(len) condition. As the loop never terminates, genl_mutex is never released, and other tasks waiting on it starve in D state.
Check dumpit's return value, propagate it and jump to err_out on error.
From the CVE record · Linux
The Linux kernel’s TIPC compatibility dump routine can enter an infinite loop when its dump callback returns a negative error code. The loop holds genl_mutex, causing other tasks waiting for it to starve in D state. The input does not specify what access or interaction is needed to trigger this condition.
Engineers running Linux kernels with the affected TIPC code should check their versions; affected versions were not provided.