What’s Vulnerable › Vulnerabilities

CVE-2022-49191: mxser: fix xmit_buf leak in activate when LSR == 0xff

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.276, 4.19.238, 4.9.311, 5.10.110. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49191 or the next vulnerability affects your stack