net: strparser: fix skb_head leak in strp_abort_strp()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 43a0c6751a322847cb6fa0ab8cbf77a1d08bfc0a · < 19ca9475f18f991735f98a22e735c43e95e6298d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: strparser: fix skb_head leak in strp_abort_strp()
When the stream parser is aborted, for example after a message assembly timeout, it can still hold a reference to a partially assembled message in strp->skb_head.
That skb is not released in strp_abort_strp(), which leaks the partially assembled message and can be triggered repeatedly to exhaust memory.
Fix this by freeing strp->skb_head and resetting the parser state in the abort path. Leave strp_stop() unchanged so final cleanup still happens in strp_done() after the work and timer have been synchronized.
From the CVE record · Linux
The Linux kernel stream parser leaks a partially assembled message when parsing is aborted, such as after a message assembly timeout. Repeatedly triggering this condition can exhaust memory. The input does not specify whether network access, authentication, or user interaction is required.
Teams running the Linux kernel should check their installations; affected versions were not specified.