# CVE-2021-47233: regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL

- 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.30%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-05-21T14:19:35.749Z
- Modified: 2026-06-17T04:16:58.200Z
- 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:

regulator: rt4801: Fix NULL pointer dereference if priv->enable_gpios is NULL

devm_gpiod_get_array_optional may return NULL if no GPIO was assigned.

(As written by CVE List.)

## Affected

- Linux Linux: from 5bbbfc7f7f0a44b7a85ab3872dd2ccce7019f7b1 before ba8a26a7ce8617f9f3d6230de34b2302df086b41; from 5bbbfc7f7f0a44b7a85ab3872dd2ccce7019f7b1 before dc68f0c9e4a001e02376fe87f4bdcacadb27e8a1; from 5bbbfc7f7f0a44b7a85ab3872dd2ccce7019f7b1 before cb2381cbecb81a8893b2d1e1af29bc2e5531df27; 5.10 (not affected: before 5.10; from 5.10.46 up to 5.10.*; from 5.12.13 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: before 5.10.46; from 5.11 before 5.12.13; 5.13

## References

- <https://git.kernel.org/stable/c/ba8a26a7ce8617f9f3d6230de34b2302df086b41> (patch)
- <https://git.kernel.org/stable/c/dc68f0c9e4a001e02376fe87f4bdcacadb27e8a1> (patch)
- <https://git.kernel.org/stable/c/cb2381cbecb81a8893b2d1e1af29bc2e5531df27> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47233 · Whole record: https://cve.day/CVE-2021-47233.json · Rebuilt by cve.day 2026-11-25T22:58:08.748Z
