CVE-2024-42089

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

published July 29, 2024

CVSS
—
EPSS
0%
Percentile
13.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00233 · 13.4th percentile
Published
2024-07-29T16:26Z
EPSS history
Timeline
  • 29 JUL 16:26Z
    ASoC: fsl-asoc-card: set priv->pdev before using it
    cvelistv5