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.
Published: 2026-05-28
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the SELinux socket state is stored in a composite Layered Security Module (LSM) 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 elevate privileges or bypass policy restrictions.

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.

Generated by OpenCVE AI on May 29, 2026 at 04:52 UTC.

Remediation

No vendor fix or workaround currently provided.

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 May 29, 2026 at 04:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 29 May 2026 03:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665
CWE-730

Fri, 29 May 2026 00:15:00 +0000

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


Thu, 28 May 2026 11:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665
CWE-730

Thu, 28 May 2026 10:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-14T17:54:43.918Z

Reserved: 2026-05-13T15:03:33.097Z

Link: CVE-2026-46104

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-28T10:16:25.757

Modified: 2026-06-17T10:53:04.403

Link: CVE-2026-46104

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-28T00:00:00Z

Links: CVE-2026-46104 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T05:00:07Z

Weaknesses
  • CWE-1083

    Data Access from Outside Expected Data Manager Component