Skip to content
Heist/ feed
Back to feed
UnratedFix available

apparmor: fix NULL sock in aa_sock_file_perm

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix NULL sock in aa_sock_file_perm Deal with the potential that sock and sock-sk can be NULL during socket setup or teardown. This could lead to an oops. The fix for NULL pointer dereference in __unix_needs_revalidation shows this is at least possible for af_unix sockets. While the fix for af_unix sockets applies for newer mediation this is still the fall back path for older af_unix mediation and other sockets, so ensure it is covered.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.252, 5.15.202, 6.1.165, 6.12.75, 6.18.14, 6.19.4, 6.6.128
CVEs
CVE-2026-45848
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 04:38 UTC · Revision 1

Source evidence

apparmor: fix NULL sock in aa_sock_file_perm

core-osv · Original source

Published 27 May 2026, 12:15 UTC

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix NULL sock in aa_sock_file_perm Deal with the potential that sock and sock-sk can be NULL during socket setup or teardown. This could lead to an oops. The fix for NULL pointer dereference in __unix_needs_revalidation shows this is at least possible for af_unix sockets. While the fix for af_unix sockets applies for newer mediation this is still the fall back path for older af_unix mediation and other sockets, so ensure it is covered.

osv:CVE-2026-45848

Kernel

Fixed versions: 5.10.252, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.14, 6.19.4

Complete source record
{
  "id": "e8237c9ddd88e3284b53645316099fa52d22174cc93e103e967d86aa3d3a06af",
  "url": "https://osv.dev/vulnerability/CVE-2026-45848",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "apparmor: fix NULL sock in aa_sock_file_perm",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: apparmor: fix NULL sock in aa_sock_file_perm Deal with the potential that sock and sock-sk can be NULL during socket setup or teardown. This could lead to an oops. The fix for NULL pointer dereference in __unix_needs_revalidation shows this is at least possible for af_unix sockets. While the fix for af_unix sockets applies for newer mediation this is still the fall back path for older af_unix mediation and other sockets, so ensure it is covered.",
    "evidence": "osv:CVE-2026-45848",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.252",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.202",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.165",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.128",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-45848",
      "aliases": [
        "CVE-2026-45848"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "56974a6fcfef69ee0825bd66ed13e92070ac5224"
                },
                {
                  "fixed": "68538ec34fcb4194c7961dc4eca6f5537fec8067"
                },
                {
                  "fixed": "5121b7283f1c46e4c06b88b1dda7b064429d77de"
                },
                {
                  "fixed": "c11b7c3280d000376e27ebfed17ec7046699eab4"
                },
                {
                  "fixed": "0dc19bca22606f7a61d5988408f74e3ae0ef3486"
                },
                {
                  "fixed": "3852eb9a0392eb435c03dcb47d581bcfe6a9a95b"
                },
                {
                  "fixed": "ccb66a3c6c8f51b3ed1bc003b70bb9ff99e8d835"
                },
                {
                  "fixed": "8a0ededbfcff74598f82f1d4b8ef9db28878b317"
                },
                {
                  "fixed": "00b67657535dfea56e84d11492f5c0f61d0af297"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45848.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.17.0"
                },
                {
                  "fixed": "5.10.252"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.202"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.165"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.128"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45848.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.974305842Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/00b67657535dfea56e84d11492f5c0f61d0af297",
        "https://git.kernel.org/stable/c/0dc19bca22606f7a61d5988408f74e3ae0ef3486",
        "https://git.kernel.org/stable/c/3852eb9a0392eb435c03dcb47d581bcfe6a9a95b",
        "https://git.kernel.org/stable/c/5121b7283f1c46e4c06b88b1dda7b064429d77de",
        "https://git.kernel.org/stable/c/68538ec34fcb4194c7961dc4eca6f5537fec8067",
        "https://git.kernel.org/stable/c/8a0ededbfcff74598f82f1d4b8ef9db28878b317",
        "https://git.kernel.org/stable/c/c11b7c3280d000376e27ebfed17ec7046699eab4",
        "https://git.kernel.org/stable/c/ccb66a3c6c8f51b3ed1bc003b70bb9ff99e8d835",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45848.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-45848",
        "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/45xxx/CVE-2026-45848.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-45848",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 518193,
  "published_at": "2026-05-27T12:15:12.31+00:00"
}