VYPR
Unrated severityNVD Advisory· Published Dec 30, 2025· Updated Apr 15, 2026

CVE-2022-50866

CVE-2022-50866

Description

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

ASoC: pxa: fix null-pointer dereference in filter()

kasprintf() would return NULL pointer when kmalloc() fail to allocate. Need to check the return pointer before calling strcmp().

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

In the Linux kernel's ASoC PXA driver, a null-pointer dereference in filter() occurs when kasprintf() failure can crash the system.

Vulnerability

In the Linux kernel's ASoC (ALSA System on Chip) subsystem for the PXA architecture, the filter() function in the PXA I2S audio support calls kasprintf() to allocate a string. If kasprintf() fails due to memory pressure (kmalloc failure), it returns a NULL pointer. The code then passes this NULL pointer to strcmp() without a check, leading to a null-pointer dereference and a kernel crash.

Exploitation

This vulnerability is triggered when the kernel runs low on memory, causing kasprintf() to fail. An attacker with local access and the ability to trigger audio device operations (e.g., via ALSA ioctls) could exploit this condition. No special privileges beyond normal user access to the audio subsystem are required.

Impact

A successful null-pointer dereference results in a kernel crash (kernel panic) or system crash, leading to a denial of service (DoS). The vulnerability does not allow an unprivileged user to crash the system, impacting availability.

Mitigation

The fix adds a NULL check after kasprintf() to check for NULL before calling strcmp(). Patches have been applied to the stable kernel branches as referenced in the commit history [1][2][3]. Users should update to a patched kernel version.

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

9

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

9

News mentions

0

No linked articles in our index yet.