lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022622-CVE-2022-49226-b30c@gregkh>
Date: Wed, 26 Feb 2025 02:57:11 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49226: net: asix: add proper error handling of usb read errors

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.

The Linux kernel CVE team has assigned CVE-2022-49226 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.9 with commit d9fe64e511144c1ee7d7555b4111f09dde9692ef and fixed in 5.15.33 with commit b96a7265f763b37ff3138b9ca8122a950f13b00e
	Issue introduced in 4.9 with commit d9fe64e511144c1ee7d7555b4111f09dde9692ef and fixed in 5.16.19 with commit 9ea8d2fca8fea3b17005b4dc02f8ef15f7a2fb97
	Issue introduced in 4.9 with commit d9fe64e511144c1ee7d7555b4111f09dde9692ef and fixed in 5.17.2 with commit 662ff765470ad0d11a1153d6d8e99d69a98e60b4
	Issue introduced in 4.9 with commit d9fe64e511144c1ee7d7555b4111f09dde9692ef and fixed in 5.18 with commit 920a9fa27e7805499cfe78491b36fed2322c02ec

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2022-49226
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/usb/asix.h
	drivers/net/usb/asix_common.c
	drivers/net/usb/asix_devices.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/b96a7265f763b37ff3138b9ca8122a950f13b00e
	https://git.kernel.org/stable/c/9ea8d2fca8fea3b17005b4dc02f8ef15f7a2fb97
	https://git.kernel.org/stable/c/662ff765470ad0d11a1153d6d8e99d69a98e60b4
	https://git.kernel.org/stable/c/920a9fa27e7805499cfe78491b36fed2322c02ec

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ