Skip to content
Heist/ feed
Back to feed
UnratedFix available

selinux: use sk blob accessor in socket permission helpers

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.30, 7.0.7
CVEs
CVE-2026-46104
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:01 UTC · Revision 1

Source evidence

selinux: use sk blob accessor in socket permission helpers

core-osv · Original source

Published 28 May 2026, 09:35 UTC

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.

osv:CVE-2026-46104

Kernel

Fixed versions: 6.18.30, 7.0.7

Complete source record
{
  "id": "f51eda3ab21eaf8320dd9cd95d486e435cd778acdd3bb9d90893211cbfeced6e",
  "url": "https://osv.dev/vulnerability/CVE-2026-46104",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "selinux: use sk blob accessor in socket permission helpers",
    "summary": "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.",
    "evidence": "osv:CVE-2026-46104",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.30",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-46104",
      "aliases": [
        "CVE-2026-46104"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d1d991efaf34606d500dcbd28bedc0666eeec8e2"
                },
                {
                  "fixed": "d350fef4bc2467fe1bce15f7a20fe60e01ce41ad"
                },
                {
                  "fixed": "7eca71f57f194c1638ebb7f4097d6be8fd04c101"
                },
                {
                  "fixed": "032e70aff025d7c519af9ab791cd084380619263"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46104.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.30"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46104.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.294383808Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/032e70aff025d7c519af9ab791cd084380619263",
        "https://git.kernel.org/stable/c/7eca71f57f194c1638ebb7f4097d6be8fd04c101",
        "https://git.kernel.org/stable/c/d350fef4bc2467fe1bce15f7a20fe60e01ce41ad",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46104.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-46104",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46104.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-46104",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 506453,
  "published_at": "2026-05-28T09:35:07.397+00:00"
}