CVE-2026-46104

selinux: use sk blob accessor in socket permission helpers

Published May 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

selinux: use sk blob accessor in socket permission helpers

SELinux socket state lives in the composite LSM socket blob.

sock_has_perm() and nlmsg_sock_has_extended_perms() currently
dereference sk->sk_security directly, which assumes the SELinux socket
blob is at offset zero.

In stacked configurations that assumption does not hold. If another LSM
allocates socket blob storage before SELinux, these helpers may read the
wrong blob and feed invalid SID and class values into AVC checks.

Use selinux_sock() instead of accessing sk->sk_security directly.

Analysis

AI-generated

Technical impact

In the Linux kernel, the SELinux socket state is stored in a composite Layered Security Module socket blob. The functions sock_has_perm() and nlmsg_sock_has_extended_perms() dereference sk->sk_security directly, assuming that the SELinux blob starts at offset zero. When another LSM allocates socket blob space before SELinux, this assumption fails and the helpers read an incorrect blob, feeding erroneous SELinux IDs (SID) and class values into the access control checks. This misreading can cause SELinux to make incorrect access decisions, potentially allowing an attacker to bypass SELinux restrictions and gain unauthorized privileges. Based on the description, it is inferred that the flaw could be exploited to bypass policy restrictions or elevate privileges.

Affected Systems

The vulnerability affects Linux kernel systems that run SELinux together with at least one additional LSM module in a stacked configuration. No specific kernel version range is supplied in the CVE data, so the flaw may be present in any kernel release prior to the fix. Systems with multiple LSMs and no enforced ordering of SELinux are at risk.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of <1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack would require local or privileged ability to influence the order of LSM socket blob allocation, pointing to a local privilege escalation scenario. Although the interplay of SELinux and other LSMs limits widespread exploitation, the potential to invalidate SELinux checks warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the SELinux socket blob fix.
  • Configure the kernel so that SELinux loads before any other LSM modules to ensure correct blob ordering, if the patch is not yet available.
  • As a temporary measure, disable or unload other LSM modules until the kernel is updated, if the system can tolerate reduced LSM protections.

Generated by OpenCVE AI on August 12, 2026 at 03:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
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
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-665
CWE-730
Type Values Removed Values Added
Weaknesses CWE-1083
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-665
CWE-730
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: selinux: use sk blob accessor in socket permission helpers SELinux socket state lives in the composite LSM socket blob. sock_has_perm() and nlmsg_sock_has_extended_perms() currently dereference sk->sk_security directly, which assumes the SELinux socket blob is at offset zero. In stacked configurations that assumption does not hold. If another LSM allocates socket blob storage before SELinux, these helpers may read the wrong blob and feed invalid SID and class values into AVC checks. Use selinux_sock() instead of accessing sk->sk_security directly.
Title selinux: use sk blob accessor in socket permission helpers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 14, 2026, 5:54 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
May 28, 2026, 10:16 AM
Modified
Jun 25, 2026, 9:18 PM
Severity
Moderate
Public date
May 28, 2026, 12:00 AM