CVE-2022-49226 net: asix: add proper error handling of usb read errors

Medium 5.5 Published Updated

A missing error check in the ASIX USB network driver allows attackers to read uninitialized kernel memory, potentially disclosing sensitive data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49226?

CVE-2022-49226 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

net: asix: add proper error handling of usb read errors

Syzbot once again hit uninit value in asix driver. The problem still the same -- asix_read_cmd() reads less bytes, than was requested by caller.

Since all read requests are performed via asix_read_cmd() let's catch usb related error there and add __must_check notation to be sure all callers actually check return value.

So, this patch adds sanity check inside asix_read_cmd(), that simply checks if bytes read are not less, than was requested and adds missing error handling of asix_read_cmd() all across the driver code.

Which versions are affected by CVE-2022-49226?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49226?

Apply the vendor's patch.

Is CVE-2022-49226 being exploited?

There is no known exploitation of CVE-2022-49226 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49226, GHSA-vrq4-x4g7-r2cr, ROOT-OS-DEBIAN-11-CVE-2022-49226, UBUNTU-CVE-2022-49226.

Is CVE-2022-49226 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free