mxser: fix xmit_buf leak in activate when LSR == 0xff
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6769140d304731f0a3b177470a2adb4bacd9036b · < b125b08dbee3611f03f53b71471813ed4ccafcdd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mxser: fix xmit_buf leak in activate when LSR == 0xff
When LSR is 0xff in ->activate() (rather unlike), we return an error. Provided ->shutdown() is not called when ->activate() fails, nothing actually frees the buffer in this case.
Fix this by properly freeing the buffer in a designated label. We jump there also from the "!info->type" if now too.
From the CVE record · Linux
The Linux kernel's mxser driver can leak a transmit buffer when activation encounters an LSR value of 0xff and shutdown is not called after activation fails. The input does not describe an attacker action or specify whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the mxser driver should check their versions; affected versions are not specified.