# CVE-2022-49608: pinctrl: ralink: Check for null return of devm_kcalloc

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-26T02:23:32.309Z
- Modified: 2026-06-17T05:18:36.980Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

pinctrl: ralink: Check for null return of devm_kcalloc

Because of the possible failure of the allocation, data->domains might
be NULL pointer and will cause the dereference of the NULL pointer
later.
Therefore, it might be better to check it and directly return -ENOMEM
without releasing data manually if fails, because the comment of the
devm_kmalloc() says "Memory allocated with this function is
automatically freed on driver detach.".

(As written by CVE List.)

## Affected

- Linux Linux: from a86854d0c599b3202307abceb68feee4d7061578 before 13596e6c9e541e90e5fc2c52b23f08b951370da9; from a86854d0c599b3202307abceb68feee4d7061578 before 6194c021496addc11763d1ffa89ce5751889fe3c; from a86854d0c599b3202307abceb68feee4d7061578 before 5694b162f275fb9a9f89422701b2b963be11e496; from a86854d0c599b3202307abceb68feee4d7061578 before 44016a85419ca0d4f1e4d0127b330f8e4e2a57d0; from a86854d0c599b3202307abceb68feee4d7061578 before 5595d30c4dc27d939635c3188c68203b6ece1711; from a86854d0c599b3202307abceb68feee4d7061578 before c3b821e8e406d5650e587b7ac624ac24e9b780a8; 4.18 (not affected: before 4.18; from 4.19.254 up to 4.19.*; from 5.4.208 up to 5.4.*; from 5.10.134 up to 5.10.*; from 5.15.58 up to 5.15.*; from 5.18.15 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.18 before 4.19.254; from 4.20 before 5.4.208; from 5.5 before 5.10.134; from 5.11 before 5.15.58; from 5.16 before 5.18.15; 5.19

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/13596e6c9e541e90e5fc2c52b23f08b951370da9> (patch)
- <https://git.kernel.org/stable/c/6194c021496addc11763d1ffa89ce5751889fe3c> (patch)
- <https://git.kernel.org/stable/c/5694b162f275fb9a9f89422701b2b963be11e496> (patch)
- <https://git.kernel.org/stable/c/44016a85419ca0d4f1e4d0127b330f8e4e2a57d0> (patch)
- <https://git.kernel.org/stable/c/5595d30c4dc27d939635c3188c68203b6ece1711> (patch)
- <https://git.kernel.org/stable/c/c3b821e8e406d5650e587b7ac624ac24e9b780a8> (patch)

## Sources

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

---

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