CVE-2024-42089

ASoC: fsl-asoc-card: set priv->pdev before using it

No CVSS score yet EPSS 0.23%

Published 29 Jul 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-42089

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42089 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

ASoC: fsl-asoc-card: set priv->pdev before using it

priv->pdev pointer was set after being used in fsl_asoc_card_audmux_init(). Move this assignment at the start of the probe function, so sub-functions can correctly use pdev through priv.

fsl_asoc_card_audmux_init() dereferences priv->pdev to get access to the dev struct, used with dev_err macros. As priv is zero-initialised, there would be a NULL pointer dereference. Note that if priv->dev is dereferenced before assignment but never used, for example if there is no error to be printed, the driver won't crash probably due to compiler optimisations.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before ae81535ce2503aabc4adab3472f4338070cdeb6a
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 8896e18b7c366f8faf9344abfd0971435f1c723a
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 3662eb2170e59b58ad479982dc1084889ba757b9
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 544ab46b7ece6d6bebbdee5d5659c0a0f804a99a
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 8faf91e58425c2f6ce773250dfd995f1c2d461ac
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 29bc9e7c75398b0d12fc30955f2e9b2dd29ffaed
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 7c18b4d89ff9c810b6e562408afda5ce165c4ea6
affected from 708b4351f08c08ea93f773fb9197bdd3f3b08273, before 90f3feb24172185f1832636264943e8b5e289245
Other versions: unaffected
Linux
affected 3.18
unaffected before 3.18
unaffected from 4.19.317 up to and including 4.19.*
unaffected from 5.4.279 up to and including 5.4.*
unaffected from 5.10.221 up to and including 5.10.*
unaffected from 5.15.162 up to and including 5.15.*
unaffected from 6.1.97 up to and including 6.1.*
unaffected from 6.6.37 up to and including 6.6.*
unaffected from 6.9.8 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42089 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42089

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-42089
trivy image --scanners vuln IMAGE | grep CVE-2024-42089

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-42089 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.