VDB

CVE-2024-35904

CVE-2024-35904 PUBLISHED

selinux: avoid dereference of garbage after mount failure

Reported by linux · Published May 19, 2024

In the Linux kernel, the following vulnerability has been resolved: selinux: avoid dereference of garbage after mount failure In case kern_mount() fails and returns an error pointer return in the error branch instead of continuing and dereferencing the error pointer. While on it drop the never read static variable selinuxfs_mount.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.8.5, 6.6.26

Affected products

VendorProductVersions
LinuxLinux0619f0f5e36f12e100ef294f5980cfe7c93ff23e, 0619f0f5e36f12e100ef294f5980cfe7c93ff23e, 0619f0f5e36f12e100ef294f5980cfe7c93ff23e
LinuxLinux4.17, 0, 6.1.191
LinuxLinux6.9, 0, 6.1.191
linuxlinux_kernel4.17, 4.17, 4.17

Timeline

  • May 19, 2024 CVE Published
  • May 20, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 10, 2026 Security Advisory (456 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (350 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-35904
vulnetix vdb fixes CVE-2024-35904

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-35904/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›