# CVE-2022-49435: mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-02)
- Published: 2025-02-26T02:12:51.554Z
- Modified: 2026-06-17T05:18:02.493Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

mfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()

It will cause null-ptr-deref when using 'res', if platform_get_resource()
returns NULL, so move using 'res' after devm_ioremap_resource() that
will check it to avoid null-ptr-deref.
And use devm_platform_get_and_ioremap_resource() to simplify code.

(As written by CVE List.)

## Affected

- Linux Linux: from b5e29aa880be84c271be8d0726cec4018bfbfd74 before 49c1e32e7b3f301642a60448700ec531df981269; from b5e29aa880be84c271be8d0726cec4018bfbfd74 before a1d4941d9a24999f680799f9bbde7f57351ca637; from b5e29aa880be84c271be8d0726cec4018bfbfd74 before 5289795824b77489803b0802cd9edc13824a2d0b; from b5e29aa880be84c271be8d0726cec4018bfbfd74 before 2d00158a06efe6bbcd020108634ea0f2ed8b32f7; from b5e29aa880be84c271be8d0726cec4018bfbfd74 before 579944b9f38727d9ff570b58f83bc424e8af8398; from b5e29aa880be84c271be8d0726cec4018bfbfd74 before 311242c7703df0da14c206260b7e855f69cb0264; 5.4 (not affected: before 5.4; from 5.4.198 up to 5.4.*; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.4 before 5.4.198; from 5.5 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/49c1e32e7b3f301642a60448700ec531df981269> (patch)
- <https://git.kernel.org/stable/c/a1d4941d9a24999f680799f9bbde7f57351ca637> (patch)
- <https://git.kernel.org/stable/c/5289795824b77489803b0802cd9edc13824a2d0b> (patch)
- <https://git.kernel.org/stable/c/2d00158a06efe6bbcd020108634ea0f2ed8b32f7> (patch)
- <https://git.kernel.org/stable/c/579944b9f38727d9ff570b58f83bc424e8af8398> (patch)
- <https://git.kernel.org/stable/c/311242c7703df0da14c206260b7e855f69cb0264> (patch)

## Sources

- CVE List: [CVE-2022-49435](https://www.cve.org/CVERecord?id=CVE-2022-49435), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49435](https://nvd.nist.gov/vuln/detail/CVE-2022-49435), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49435 · Whole record: https://cve.day/CVE-2022-49435.json · Rebuilt by cve.day 2026-11-25T22:58:20.654Z
