SecurityContext

CVE-2024-50005: Linux Kernel - Use After Free

  • Cve: CVE-2024-50005
  • Name: Linux Kernel - Use After Free
  • Description: In the Linux kernel, the following vulnerability has been resolved: mac802154: Fix potential RCU dereference issue in mac802154_scan_worker In the `mac802154_scan_worker` function, the `scan_req->type` field was accessed after the RCU read-side critical section was unlocked. According to RCU usage rules, this is illegal and can lead to unpredictable behavior, such as accessing memory that has been updated or causing use-after-free issues. This possible bug was identified using a static analysis tool developed by myself, specifically designed to detect RCU-related issues. To address this, the `scan_req->type` value is now stored in a local variable `scan_req_type` while still within the RCU read-side critical section. The `scan_req_type` is then used after the RCU lock is released, ensuring that the type value is safely accessed without violating RCU rules.
  • Impact: Potential use-after-free or memory access issues in kernel modules, possibly leading to kernel panic or privilege escalation.
  • Remediation: Apply the patch that stores scan_req->type in a local variable within the RCU critical section, or update to the latest kernel version where this fix is included.
  • Vulnerability type: use_after_free
  • Vulnerability impact: privilege_escalation, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00221
  • Epss percentile: 0.12703
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2024-10-21T19:15:04Z
  • Age in days: 764
  • Modified at: 2026-06-17T08:03:22Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-50005
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-416Use After Free

References

Same in every row:

  • Source: nvd
  • Tags: Patch
Url
https://git.kernel.org/stable/c/540138377b22f601f06f55ebfa3ca171dcab471a
https://git.kernel.org/stable/c/bff1709b3980bd7f80be6786f64cc9a9ee9e56da
https://git.kernel.org/stable/c/d18f669461811dfe2915d5554ab2a9834f810013
https://git.kernel.org/stable/c/e676e4ea76bbe7f1156d8c326b9b6753849481c2

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.12 rc1; >= 6.11, < 6.11.3; >= 6.7, < 6.10.14; >= 6.5, < 6.6.55nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports