CVE-2024-42089

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

MEDIUM
5.5
CVSS Score
Published: July 29, 2024 at 04:26 PM UTC
Updated: June 17, 2026 at 07:48 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.18 ≤ v < 4.19.3173.18 ≤ v < 5.10.2213.18 ≤ v < 5.15.1623.18 ≤ v < 5.4.2793.18 ≤ v < 6.1.973.18 ≤ v < 6.103.18 ≤ v < 6.6.373.18 ≤ v < 6.9.84.20 ≤ v < 5.4.2795.11 ≤ v < 5.15.1625.16 ≤ v < 6.1.975.5 ≤ v < 5.10.2216.2 ≤ v < 6.6.376.7 ≤ v < 6.9.86.10 rc16.10 rc26.10 rc36.10 rc46.10 rc5708b4351f08c08ea93f773fb9197bdd3f3b08273
Vendor states this is fixed in 29bc9e7c75398b0d12fc30955f2e9b2dd29ffaed (fixed)
Vendor states this is fixed in 3662eb2170e59b58ad479982dc1084889ba757b9 (fixed)
Vendor states this is fixed in 544ab46b7ece6d6bebbdee5d5659c0a0f804a99a (fixed)
Vendor states this is fixed in 7c18b4d89ff9c810b6e562408afda5ce165c4ea6 (fixed)
Vendor states this is fixed in 8896e18b7c366f8faf9344abfd0971435f1c723a (fixed)
Vendor states this is fixed in 8faf91e58425c2f6ce773250dfd995f1c2d461ac (fixed)
Vendor states this is fixed in 90f3feb24172185f1832636264943e8b5e289245 (fixed)
Vendor states this is fixed in ae81535ce2503aabc4adab3472f4338070cdeb6a (fixed)
Vendor states this is fixed in 3.18 (unaffected)
Vendor states this is fixed in 4.19.317 (unaffected)
Vendor states this is fixed in 5.10.221 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 5.4.279 (unaffected)
Vendor states this is fixed in 6.1.97 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.37 (unaffected)
Vendor states this is fixed in 6.9.8 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/29bc9e7c75398b0d12fc30955f2e9b2dd29ffaed
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3662eb2170e59b58ad479982dc1084889ba757b9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/544ab46b7ece6d6bebbdee5d5659c0a0f804a99a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c18b4d89ff9c810b6e562408afda5ce165c4ea6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8896e18b7c366f8faf9344abfd0971435f1c723a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8faf91e58425c2f6ce773250dfd995f1c2d461ac
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/90f3feb24172185f1832636264943e8b5e289245
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae81535ce2503aabc4adab3472f4338070cdeb6a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card