netrom: Decrease sock refcount when sock timers expire
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63346650c1a94a92be61a57416ac88c0a47c4327 · < 6811744bd0efb9e472cb15d066cdb460beb8cb8a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netrom: Decrease sock refcount when sock timers expire
Commit 63346650c1a9 ("netrom: switch to sock timer API") switched to use sock timer API. It replaces mod_timer() by sk_reset_timer(), and del_timer() by sk_stop_timer().
Function sk_reset_timer() will increase the refcount of sock if it is called on an inactive timer, hence, in case the timer expires, we need to decrease the refcount ourselves in the handler, otherwise, the sock refcount will be unbalanced and the sock will never be freed.
From the CVE record · Linux
The Linux kernel’s NET/ROM socket timer handlers can fail to decrease a socket’s reference count when a timer expires. The socket may then never be freed. The input does not specify an attack path, authentication requirements, or user interaction.
Teams running Linux kernels with NET/ROM support should check their kernel; affected versions are not specified.