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

iio: chemical: mhz19b: reject oversized serial replies

mhz19b_receive_buf() appends each serdev chunk into the fixed
MHZ19B_CMD_SIZE receive buffer and advances buf_idx by len without
checking that the chunk fits in the remaining space. A large callback
can therefore overflow st->buf before the command path validates the
reply.

Reset the reply state before each command and reject oversized serial
replies before copying them into the fixed buffer. When an oversized
reply is detected, wake the waiter and report -EMSGSIZE instead of
overwriting st->buf.
Published: 2026-07-19
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A buffer overflow exists in the Linux kernel IIO chemical driver for the mhz19b sensor. When the driver receives a serial reply, it appends each chunk into a fixed-size buffer without verifying that the chunk fits within the remaining space. This allows an oversized reply to overwrite the buffer, potentially corrupting kernel memory. The flaw could enable an attacker to execute arbitrary code with kernel privileges or subvert system integrity.

Affected Systems

All Linux kernel builds prior to the patch that adds reply‑size validation are affected. This applies to every distribution shipping the default kernel without the fix.

Risk and Exploitability

The EPSS score is below 1 %, indicating a low probability of exploitation in the wild, and the issue is not listed in the CISA KEV catalog. Based on the description, it is inferred that attackers would likely need local physical or logical access to the serial interface used by the mhz19b sensor, though the lack of remote exposure does not eliminate the risk of privilege escalation or denial of service on a compromised system.

Generated by OpenCVE AI on August 4, 2026 at 06:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the mhz19b reply‑size validation fix
  • Disable or disconnect the mhz19b sensor until a patched kernel or firmware is available
  • Restrict access to the serial device so that only trusted users can interface with the sensor

Generated by OpenCVE AI on August 4, 2026 at 06:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 22 Jul 2026 00:15:00 +0000


Tue, 21 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iio: chemical: mhz19b: reject oversized serial replies mhz19b_receive_buf() appends each serdev chunk into the fixed MHZ19B_CMD_SIZE receive buffer and advances buf_idx by len without checking that the chunk fits in the remaining space. A large callback can therefore overflow st->buf before the command path validates the reply. Reset the reply state before each command and reject oversized serial replies before copying them into the fixed buffer. When an oversized reply is detected, wake the waiter and report -EMSGSIZE instead of overwriting st->buf.
Title iio: chemical: mhz19b: reject oversized serial replies
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-19T14:55:31.460Z

Reserved: 2026-07-19T07:54:57.021Z

Link: CVE-2026-63932

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63932 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:45:03Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')