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

selinux: preserve user SID across nested backing files

SELinux saves the user file SID in a backing-file security blob so it
remains available after mmap() replaces vma->vm_file with a backing file.

For nested backing files (overlayfs over overlayfs, or FUSE passthrough
backed by overlayfs), user_file may itself be a backing file. Its
fsec->sid is the SID of the mounter that opened it, rather than the user
that opened the top-level file. mprotect() then checks fd { use } against
the mounter SID. This can incorrectly deny access without a domain
transition, or check the wrong target SID after one.

Copy the saved user SID when user_file is a backing file. Keep using the
regular file SID for the first backing layer.

With two nested overlayfs mounts and SELinux enforcing,
mprotect(PROT_READ) returns EACCES with an fd { use } denial against the
mounter SID. With this change, mprotect() succeeds.

Tested on arm64 QEMU with a small BusyBox initramfs and a purpose-built
SELinux policy. The original test was also repeated with Fedora Cloud
Base 44 userspace and gave the same result.
Published: 2026-10-06
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Possible unauthorized access due to incorrect SELinux SID handling
Action: Apply update
AI Analysis

Impact

SELinux records a user file SID in a backing file security blob so the SID survives an mmap() that swaps the file pointer with a backing file. When two overlay filesystems (or a FUSE passthrough backed by overlay) are stacked, the top‑level file’s backing file can itself be a backing file, causing the stored SID to reference the process that opened that inner backing file, not the original user. During a subsequent mprotect() the kernel compares the file descriptor’s SID with the SID of the mounter, which may incorrectly deny access or, if a domain transition occurs, perform the check against the wrong target SID. Based on the description, it is inferred that this mismatch could allow a user to bypass SELinux policy checks, potentially elevating privileges or accessing files they should not.

Affected Systems

All Linux kernel versions that include the SELinux subsystem and support nested overlay filesystems or a FUSE passthrough over overlay are affected. The vulnerability exists in any kernel release prior to the commit that copies the original user SID for nested backing files.

Risk and Exploitability

The flaw is an authorization weakness; CVSS score of 7.0 indicates moderate to high severity, while the EPSS score of < 1% suggests a very low exploitation probability. Exploitation requires an attacker to configure nested overlay mounts and trigger an mprotect() on a file intended to be readable. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves a local attacker or a user with privileges to create the necessary mount points. Because the conditions are specific and require privileged operations, the risk overall is considered limited, though the possibility of privilege escalation cannot be ruled out.

Generated by OpenCVE AI on October 9, 2026 at 17:10 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the SELinux SID fix for nested backing files.
  • Rebuild or update any custom SELinux policies to account for the corrected SID checks.
  • Avoid using nested overlay filesystems or FUSE passthrough backed by overlay until after the kernel is patched or the issue is confirmed mitigated.

Generated by OpenCVE AI on October 9, 2026 at 17:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Fri, 09 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-285

Fri, 09 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-281
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Wed, 07 Oct 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-285

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: selinux: preserve user SID across nested backing files SELinux saves the user file SID in a backing-file security blob so it remains available after mmap() replaces vma->vm_file with a backing file. For nested backing files (overlayfs over overlayfs, or FUSE passthrough backed by overlayfs), user_file may itself be a backing file. Its fsec->sid is the SID of the mounter that opened it, rather than the user that opened the top-level file. mprotect() then checks fd { use } against the mounter SID. This can incorrectly deny access without a domain transition, or check the wrong target SID after one. Copy the saved user SID when user_file is a backing file. Keep using the regular file SID for the first backing layer. With two nested overlayfs mounts and SELinux enforcing, mprotect(PROT_READ) returns EACCES with an fd { use } denial against the mounter SID. With this change, mprotect() succeeds. Tested on arm64 QEMU with a small BusyBox initramfs and a purpose-built SELinux policy. The original test was also repeated with Fedora Cloud Base 44 userspace and gave the same result.
Title selinux: preserve user SID across nested backing files
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-10-19T09:15:46.038Z

Reserved: 2026-09-25T10:25:14.326Z

Link: CVE-2026-98215

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:08.107

Modified: 2026-10-19T10:18:22.230

Link: CVE-2026-98215

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98215 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T17:15:09Z

Weaknesses
  • CWE-281

    Improper Preservation of Permissions