CVE-2026-138964

iio: dac: mcp4821: reject devices without match data

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

iio: dac: mcp4821: reject devices without match data

A device bound through driver_override need not match an entry in the
driver tables. In that case spi_get_device_match_data() returns NULL,
but mcp4821_probe() dereferences the result while configuring the IIO
device.

Reject devices without match data before using the chip information.

Analysis

AI-generated

Technical impact

In the Linux kernel, the IIO driver for the MCP4821 DAC contains a null-pointer dereference when a device is bound via driver_override without corresponding match data. The probe routine assumes non‑null data and dereferences a NULL pointer during configuration, causing a kernel fault and system crash. Consequently, an attacker who can influence driver binding can trigger a denial‑of‑service condition.

Affected Systems

The flaw exists in the Linux kernel for all architectures where the mcp4821 IIO driver is compiled. It affects any system that includes the mcp4821 DAC driver and that may expose the driver_override interface, typically all kernel builds that enable the mcp4821 IIO driver. Exact affected kernel versions are not listed, but the patch commits are logged in the kernel repository and the issue has been closed in commit references in the description.

Risk and Exploitability

The CVSS score is not provided, and the vulnerability is not listed in CISA's KEV catalog, indicating no publicly documented exploitation. However, the flaw would require local privileged or boot‑time access to supply driver_override entries. An attacker with such access can cause a kernel panic and a denial‑of‑service. The lack of exploitation data suggests a moderate to low likelihood, but any system that permits manipulation of driver_override should be addressed promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the null‑pointer check in mcp4821_probe, as committed in the kernel repository.
  • Reboot the system to load the updated kernel and ensure the patched driver is active.
  • Verify that driver_override cannot be used to bind the mcp4821 device by checking /sys/bus/iio/devices/mcp4821_* for override entries and removing or disabling them.
  • If the MCP4821 DAC is not required, blacklist or remove the mcp4821 module to avoid loading the vulnerable driver.
  • As a temporary measure on kernels that cannot be updated immediately, revoke write permissions on any driver_override files or disable the driver_override interface in kernel configuration.

Generated by OpenCVE AI on November 30, 2026 at 18:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-20
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iio: dac: mcp4821: reject devices without match data A device bound through driver_override need not match an entry in the driver tables. In that case spi_get_device_match_data() returns NULL, but mcp4821_probe() dereferences the result while configuring the IIO device. Reject devices without match data before using the chip information.
Title iio: dac: mcp4821: reject devices without match data
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:26 PM