Description
dsp_mmap_single() validated the requested mapping by checking the sum of the user-supplied offset and length against the buffer size. This addition could overflow, so that a large offset and length wrapped around and passed the check. The offset was then narrowed from 64 to 32 bits when converted to a buffer address, yielding a mapping that extended past the audio buffer into unrelated kernel memory.

The /dev/dsp device nodes are world-accessible by default. On a system with an audio device, either issue allows an unprivileged local user to read and write kernel memory, which can be used to escalate privileges, potentially gaining full control of the affected system. At a minimum, an attacker can crash the kernel, resulting in a Denial of Service (DoS).
Published: 2026-06-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The sound(4) mmap path in FreeBSD validated the user‑supplied mapping length and offset by adding them together and comparing the sum to the buffer size. This addition could overflow so that a large offset and length wrapped around and passed the check. The offset was then narrowed from 64 to 32 bits before converting it to a buffer address, resulting in a mapping that extended past the intended audio buffer into unrelated kernel memory. Because the /dev/dsp device nodes are world‑accessible by default, an unprivileged local user can map and manipulate kernel memory, giving the attacker the ability to elevate privileges to root or crash the kernel, causing a denial of service.

Affected Systems

The vulnerability affects the FreeBSD operating system sound subsystem. No specific version numbers are listed in the advisory, but any installation that enables the /dev/dsp device on a vulnerable FreeBSD build is exposed.

Risk and Exploitability

The CVE is not listed in the CISA KEV catalog and no EPSS score is available, yet the impact is severe because the flaw enables local privilege escalation and potential full system compromise. The attack vector is local: the attacker must be able to open the world‑accessible /dev/dsp device, which gives immediate read/write access to kernel memory. The lack of public exploitation evidence does not diminish the risk, as any privileged user can leverage the flaw to gain root access or perform a DoS.

Generated by OpenCVE AI on June 27, 2026 at 10:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest FreeBSD patch that fixes the sound(4) mmap offset/length validation bug
  • If a patch is not immediately available, restrict permissions on /dev/dsp to a privileged group (e.g., chmod 640 /dev/dsp ; chgrp audio /dev/dsp)
  • Disable or remove the sound subsystem entirely on systems that do not require it, ensuring the /dev/dsp nodes are not exposed

Generated by OpenCVE AI on June 27, 2026 at 10:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 27 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description dsp_mmap_single() validated the requested mapping by checking the sum of the user-supplied offset and length against the buffer size. This addition could overflow, so that a large offset and length wrapped around and passed the check. The offset was then narrowed from 64 to 32 bits when converted to a buffer address, yielding a mapping that extended past the audio buffer into unrelated kernel memory. The /dev/dsp device nodes are world-accessible by default. On a system with an audio device, either issue allows an unprivileged local user to read and write kernel memory, which can be used to escalate privileges, potentially gaining full control of the affected system. At a minimum, an attacker can crash the kernel, resulting in a Denial of Service (DoS).
Title Multiple vulnerabilities in the sound(4) mmap path
Weaknesses CWE-125
CWE-190
CWE-681
CWE-787
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: freebsd

Published:

Updated: 2026-06-27T08:50:56.185Z

Reserved: 2026-05-11T16:27:44.892Z

Link: CVE-2026-45258

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-27T10:30:14Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-190

    Integer Overflow or Wraparound

  • CWE-681

    Incorrect Conversion between Numeric Types

  • CWE-787

    Out-of-bounds Write