CVE-2026-45258

Multiple vulnerabilities in the sound(4) mmap path

Published Jun 27, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical 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 has an EPSS score of < 1%. The CVSS score of 7.8 indicates a high severity. The attack vector is local: an unprivileged user must open the world‑accessible /dev/dsp device, giving read/write access to kernel memory. The lack of public exploitation evidence does not reduce the risk, as the flaw enables an attacker to gain full system control or crash the kernel, leading to denial of service.

Remediation

No solution or workaround provided in the CVE record.

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 29, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd
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
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

Sources

Status
PUBLISHED
Assigner
freebsd
Published
Updated
Jun 30, 2026, 3:55 AM
Reserved
May 11, 2026, 4:27 PM
Status
Analyzed
Published
Jun 27, 2026, 9:16 AM
Modified
Jul 1, 2026, 2:04 PM