# CVE-2026-64238: gpio: shared: fix deadlock on shared proxy's parent removal

- 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.08%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-07-24T15:27:42.482Z
- Modified: 2026-11-08T16:10:00.183Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

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

gpio: shared: fix deadlock on shared proxy's parent removal

Commit 710abda58055 ("gpio: shared: call gpio_chip::of_xlate() if set")
used the mutex embedded in struct gpio_shared_entry to protect the
offset field which now can be modified after assignment. The critical
section however is too wide and introduced a potential deadlock on the
removal of the shared GPIO proxy's parent.

Make the critical section shorter - only protect the offset when it's
being read.

While at it: mention the fact that the entry lock is now also used to
protect against concurrent access to the offset field in the structure's
documentation.

(As written by CVE List.)

## Affected

- Linux Linux: from 710abda58055ed5eaa8958107633cc12a365c328 before a554dfcd30dd5e41d1d67387b3bb85cea83e12e1; from 710abda58055ed5eaa8958107633cc12a365c328 before a1b836607304f71051f9f9dcccf8b5097b86a1fb; 28f488e7b327630686378bb1d24e22cfc3fc162d; from 6.19.12 before 6.20; 7.0 (not affected: before 7.0; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.19.12 before 7.0; from 7.0.1 before 7.0.12; 7.0; 7.1

## References

- <https://git.kernel.org/stable/c/a554dfcd30dd5e41d1d67387b3bb85cea83e12e1> (patch)
- <https://git.kernel.org/stable/c/a1b836607304f71051f9f9dcccf8b5097b86a1fb> (patch)

## Sources

- CVE List: [CVE-2026-64238](https://www.cve.org/CVERecord?id=CVE-2026-64238), CVE Terms of Use, modified 2026-07-24
- NVD: [CVE-2026-64238](https://nvd.nist.gov/vuln/detail/CVE-2026-64238), Public domain, modified 2026-11-08

---

Page: https://cve.day/CVE-2026-64238 · Whole record: https://cve.day/CVE-2026-64238.json · Rebuilt by cve.day 2026-11-25T22:59:30.012Z
