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: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the SELinux socket state is stored in a composite LSM socket blob. Functions sock_has_perm() and nlmsg_sock_has_extended_perms() directly dereference sk->sk_security, incorrectly assuming that the SELinux socket 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 wrong SID and class values to AVC checks. This misreading can cause SELinux to make incorrect access decisions, potentially allowing an attacker to gain unauthorized privileges.

Affected Systems

Affected systems include the Linux kernel on any platform that runs SELinux together with at least one additional LSM 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. The reported commits provide the remedy, but it applies only to configurations where multiple LSMs coexist.

Risk and Exploitability

The CVSS score is not provided and EPSS is not available, so the precise severity is unknown. The flaw is not listed in CISA’s KEV catalog. The likely attack vector requires that an attacker be able to influence the order of LSM socket blob allocation, which suggests a local or privileged context. Because the bug can cause incorrect AVC decisions that may elevate privileges, the overall risk is considered high for systems running SELinux with additional LSM modules. Prompt patching is advised.

Generated by OpenCVE AI on May 28, 2026 at 11:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the SELinux socket blob fix.
  • Ensure that the kernel is configured to load SELinux before any other LSM modules to avoid misordered socket blob allocation.
  • As a temporary measure, disable or remove other LSM modules until the kernel is updated, if critical systems cannot be patched immediately.

Generated by OpenCVE AI on May 28, 2026 at 11:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-05-28T09:35:07.397Z

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

Link: CVE-2026-46104

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-46104

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T12:00:12Z

Weaknesses