Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.33, 5.16.19, 5.17.2
CVEs
CVE-2022-49226
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 13:42 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 26 Feb 2025, 01:55 UTC

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.

osv:CVE-2022-49226

Kernel

Fixed versions: 5.15.33, 5.16.19, 5.17.2

Complete source record
{
  "id": "8850ea65ebcf1e6463b6fd7f5422b6cfdbe7cf5d7604039e0e13bc90fa38b69a",
  "url": "https://osv.dev/vulnerability/CVE-2022-49226",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: asix: add proper error handling of usb read errors",
    "summary": "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.",
    "evidence": "osv:CVE-2022-49226",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.33",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.16.19",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49226",
      "aliases": [
        "CVE-2022-49226"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d9fe64e511144c1ee7d7555b4111f09dde9692ef"
                },
                {
                  "fixed": "b96a7265f763b37ff3138b9ca8122a950f13b00e"
                },
                {
                  "fixed": "9ea8d2fca8fea3b17005b4dc02f8ef15f7a2fb97"
                },
                {
                  "fixed": "662ff765470ad0d11a1153d6d8e99d69a98e60b4"
                },
                {
                  "fixed": "920a9fa27e7805499cfe78491b36fed2322c02ec"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49226.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.9.0"
                },
                {
                  "fixed": "5.15.33"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.16.19"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "5.17.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49226.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.219640049Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/662ff765470ad0d11a1153d6d8e99d69a98e60b4",
        "https://git.kernel.org/stable/c/920a9fa27e7805499cfe78491b36fed2322c02ec",
        "https://git.kernel.org/stable/c/9ea8d2fca8fea3b17005b4dc02f8ef15f7a2fb97",
        "https://git.kernel.org/stable/c/b96a7265f763b37ff3138b9ca8122a950f13b00e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49226.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49226",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49226.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49226",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 495988,
  "published_at": "2025-02-26T01:55:55.716+00:00"
}