Description
The FIOSSHMLPGCNF ioctl(2) operation configures the page size for a largepage shared memory object. This is intended to be used immediately after creating the object, before any memory is allocated for the object. The handler checked whether a page size had already been configured without holding the rangelock. Two concurrent callers could both observe an unconfigured object and set conflicting page sizes, leaving the object in an inconsistent state.

An unprivileged local user can exploit this race to escalate privileges.
Published: 2026-08-26
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Privilege Escalation
Action: Apply Patch
AI Analysis

Impact

The ioctl operation used to configure a largepage shared memory object checks for an existing configuration without holding the necessary lock. This race condition allows two concurrent users to see an unconfigured object and set conflicting page sizes, leaving the object in an inconsistent state. The inconsistency can be exploited by an unprivileged local user to gain elevated privileges through manipulation of the shared memory mapping.

Affected Systems

This flaw affects the FreeBSD implementation of POSIX shared memory, specifically the FIOSSHMLPGCNF ioctl defined in the kernel. No version range is given, so all FreeBSD releases that expose this ioctl without the lock fix are vulnerable until a patch is applied.

Risk and Exploitability

The vulnerability is local in nature: it requires an attacker to be able to invoke the ioctl from an unprivileged account on the same system. Because the race can be triggered by two concurrent operations, the exploitation requires precise timing but is otherwise straightforward for a local attacker. The EPSS score is < 1%, and the CVSS score is 7.8. Nevertheless, the potential for privilege escalation categorizes the risk as significant. Attackers should be aware that the absence of a lock may allow privilege escalation if the race is successfully triggered.

Generated by OpenCVE AI on August 26, 2026 at 20:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest FreeBSD security patch that addresses the race condition in the shared memory ioctl.
  • Verify that the fio shm size configuration is performed immediately after object creation and before any memory is allocated, ensuring no further concurrent configuration attempts.
  • Limit the use of the shared memory ioctl to privileged users by adjusting file system permissions or implementing system‑wide security policies that restrict unprivileged access to shared memory objects.

Generated by OpenCVE AI on August 26, 2026 at 20:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 19:30:00 +0000

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'}


Wed, 26 Aug 2026 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd

Wed, 26 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description The FIOSSHMLPGCNF ioctl(2) operation configures the page size for a largepage shared memory object. This is intended to be used immediately after creating the object, before any memory is allocated for the object. The handler checked whether a page size had already been configured without holding the rangelock. Two concurrent callers could both observe an unconfigured object and set conflicting page sizes, leaving the object in an inconsistent state. An unprivileged local user can exploit this race to escalate privileges.
Title TOCTOU race in POSIX shared memory large page configuration
Weaknesses CWE-367
References

cve-icon MITRE

Status: PUBLISHED

Assigner: freebsd

Published:

Updated: 2026-08-27T03:57:03.732Z

Reserved: 2026-06-29T01:40:17.499Z

Link: CVE-2026-58094

cve-icon Vulnrichment

Updated: 2026-08-26T18:36:20.404Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-26T06:16:26.350

Modified: 2026-08-27T04:16:44.223

Link: CVE-2026-58094

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T21:00:12Z

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition