{"id":"CVE-2024-42089","aliases":["CVE-2024-42089"],"related":[],"kind":"vulnerability","state":"published","title":"ASoC: fsl-asoc-card: set priv->pdev before using it","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: fsl-asoc-card: set priv->pdev before using it\n\npriv->pdev pointer was set after being used in\nfsl_asoc_card_audmux_init().\nMove this assignment at the start of the probe function, so\nsub-functions can correctly use pdev through priv.\n\nfsl_asoc_card_audmux_init() dereferences priv->pdev to get access to the\ndev struct, used with dev_err macros.\nAs priv is zero-initialised, there would be a NULL pointer dereference.\nNote that if priv->dev is dereferenced before assignment but never used,\nfor example if there is no error to be printed, the driver won't crash\nprobably due to compiler optimisations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: fsl-asoc-card: set priv->pdev before using it\n\npriv->pdev pointer was set after being used in\nfsl_asoc_card_audmux_init().\nMove this assignment at the start of the probe function, so\nsub-functions can correctly use pdev through priv.\n\nfsl_asoc_card_audmux_init() dereferences priv->pdev to get access to the\ndev struct, used with dev_err macros.\nAs priv is zero-initialised, there would be a NULL pointer dereference.\nNote that if priv->dev is dereferenced before assignment but never used,\nfor example if there is no error to be printed, the driver won't crash\nprobably due to compiler optimisations.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: fsl-asoc-card: establezca priv-&gt;pdev antes de usarlo. El puntero priv-&gt;pdev se configuró después de usarse en fsl_asoc_card_audmux_init(). Mueva esta asignación al inicio de la función de sonda, para que las subfunciones puedan usar correctamente pdev a través de priv. fsl_asoc_card_audmux_init() elimina la referencia a priv-&gt;pdev para obtener acceso a la estructura dev, utilizada con las macros dev_err. Como priv está inicializado en cero, habría una desreferencia del puntero NULL. Tenga en cuenta que si se elimina la referencia a priv-&gt;dev antes de la asignación pero nunca se usa, por ejemplo, si no hay ningún error que imprimir, el controlador nofallará probablemente debido a las optimizaciones del compilador.","source":"nvd"}],"published":"2024-07-29T16:26:29.288Z","modified":"2026-06-17T07:48:47.207Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"ae81535ce2503aabc4adab3472f4338070cdeb6a","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"8896e18b7c366f8faf9344abfd0971435f1c723a","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"3662eb2170e59b58ad479982dc1084889ba757b9","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"544ab46b7ece6d6bebbdee5d5659c0a0f804a99a","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"8faf91e58425c2f6ce773250dfd995f1c2d461ac","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"29bc9e7c75398b0d12fc30955f2e9b2dd29ffaed","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"7c18b4d89ff9c810b6e562408afda5ce165c4ea6","status":"affected"},{"type":"git","introduced":"708b4351f08c08ea93f773fb9197bdd3f3b08273","fixed":"90f3feb24172185f1832636264943e8b5e289245","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"4.19.317","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.279","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.221","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.162","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.97","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.37","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.8","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.18","fixed":"4.19.317"},{"status":"affected","introduced":"4.20","fixed":"5.4.279"},{"status":"affected","introduced":"5.5","fixed":"5.10.221"},{"status":"affected","introduced":"5.11","fixed":"5.15.162"},{"status":"affected","introduced":"5.16","fixed":"6.1.97"},{"status":"affected","introduced":"6.2","fixed":"6.6.37"},{"status":"affected","introduced":"6.7","fixed":"6.9.8"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ae81535ce2503aabc4adab3472f4338070cdeb6a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8896e18b7c366f8faf9344abfd0971435f1c723a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3662eb2170e59b58ad479982dc1084889ba757b9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/544ab46b7ece6d6bebbdee5d5659c0a0f804a99a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8faf91e58425c2f6ce773250dfd995f1c2d461ac","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/29bc9e7c75398b0d12fc30955f2e9b2dd29ffaed","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c18b4d89ff9c810b6e562408afda5ce165c4ea6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90f3feb24172185f1832636264943e8b5e289245","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:18:44.318Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42089","url":"https://www.cve.org/CVERecord?id=CVE-2024-42089","licence":"CVE Terms of Use","modified":"2026-05-11T20:26:46.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42089","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42089","licence":"Public domain","modified":"2026-06-17T07:48:47.207Z"}],"updatedAt":"2026-11-25T22:58:43.346Z","epss":{"score":0.00233,"percentile":0.15194,"date":"2026-12-01T12:00:22.000Z"}}