Skip to content
Heist/ feed
Back to feed
UnratedFix available

ASoC: codecs: wc938x: fix accessing array out of bounds for enum type

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type Accessing enums using integer would result in array out of bounds access on platforms like aarch64 where sizeof(long) is 8 compared to enum size which is 4 bytes. Fix this by using enumerated items instead of integers.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.33, 5.16.19, 5.17.2
CVEs
CVE-2022-49249
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 00:56 UTC · Revision 1

Source evidence

ASoC: codecs: wc938x: fix accessing array out of bounds for enum type

core-osv · Original source

Published 26 Feb 2025, 01:56 UTC

In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type Accessing enums using integer would result in array out of bounds access on platforms like aarch64 where sizeof(long) is 8 compared to enum size which is 4 bytes. Fix this by using enumerated items instead of integers.

osv:CVE-2022-49249

Kernel

Fixed versions: 5.15.33, 5.16.19, 5.17.2

Complete source record
{
  "id": "5729658b22e41dd873dbeb183e5cffdf9b0cc5c35f9efc8278be3cb3befa2791",
  "url": "https://osv.dev/vulnerability/CVE-2022-49249",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ASoC: codecs: wc938x: fix accessing array out of bounds for enum type",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: wc938x: fix accessing array out of bounds for enum type Accessing enums using integer would result in array out of bounds access on platforms like aarch64 where sizeof(long) is 8 compared to enum size which is 4 bytes. Fix this by using enumerated items instead of integers.",
    "evidence": "osv:CVE-2022-49249",
    "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-49249",
      "aliases": [
        "CVE-2022-49249"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e8ba1e05bdc016700c85fad559a812c2e795442f"
                },
                {
                  "fixed": "adafea71b49ec4dbc44e0b84ec6eb602004a7a08"
                },
                {
                  "fixed": "f03c0c94186d5876857132d97e28f20cdc100bdc"
                },
                {
                  "fixed": "d09aee1b1da196be11ed86dd4897f228f2487613"
                },
                {
                  "fixed": "cc587b7c8fbbe128f6bd0dad025a0caea5e6d164"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49249.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.14.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-49249.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.418453555Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/adafea71b49ec4dbc44e0b84ec6eb602004a7a08",
        "https://git.kernel.org/stable/c/cc587b7c8fbbe128f6bd0dad025a0caea5e6d164",
        "https://git.kernel.org/stable/c/d09aee1b1da196be11ed86dd4897f228f2487613",
        "https://git.kernel.org/stable/c/f03c0c94186d5876857132d97e28f20cdc100bdc",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49249.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49249",
        "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-49249.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49249",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 508798,
  "published_at": "2025-02-26T01:56:07.215+00:00"
}