SecurityContext

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

  • Cve: CVE-2024-39491
  • Name: Linux Kernel - Use After Free
  • Description: In the Linux kernel, the following vulnerability has been resolved: ALSA: hda: cs35l56: Fix lifetime of cs_dsp instance The cs_dsp instance is initialized in the driver probe() so it should be freed in the driver remove(). Also fix a missing call to cs_dsp_remove() in the error path of cs35l56_hda_common_probe(). The call to cs_dsp_remove() was being done in the component unbind callback cs35l56_hda_unbind(). This meant that if the driver was unbound and then re-bound it would be using an uninitialized cs_dsp instance. It is best to initialize the cs_dsp instance in probe() so that it can return an error if it fails. The component binding API doesn't have any error handling so there's no way to handle a failure if cs_dsp was initialized in the bind.
  • Impact: Potential use-after-free leading to kernel panic, privilege escalation, or arbitrary code execution.
  • Remediation: Apply the patch that correctly manages the lifetime of cs_dsp, ensuring proper initialization in probe() and cleanup in remove().
  • Vulnerability type: use_after_free
  • Vulnerability impact: remote_code_execution, privilege_escalation, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.0021
  • Epss percentile: 0.11105
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2024-07-10T08:15:11Z
  • Age in days: 867
  • Modified at: 2026-06-17T07:42:02Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-39491
  • 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-908Use of Uninitialized Resource

References

Same in every row:

  • Source: nvd
  • Tags: Patch
Url
https://git.kernel.org/stable/c/60d5e087e5f334475b032ad7e6ad849fb998f303
https://git.kernel.org/stable/c/9054c474f9c219e58a441e401c0e6e38fe713ff1
https://git.kernel.org/stable/c/d344873c4cbde249b7152d36a273bcc45864001e

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.7, < 6.9.4; >= 6.6, < 6.6.33nonvd/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