# CVE-2025-21912: gpio: rcar: Use raw\_spinlock to protect register access

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-04-01T15:40:50.299Z
- **Modified:** 2026-06-17T08:44:35.597Z

## Who should check

- Anyone running Linux \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 389891ac9f678baf68e13623ef1308493af4b074; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 7c1f36f9c9aca507d317479a3d3388150ae40a87; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 3e300913c42041e81c5b17a970c4e078086ff2d1; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< c10365031f16514a29c812cd909085a6e4ea4b61; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< b42c84f9e4ec5bc2885e7fd80c79ec0352f5d2af; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 51ef3073493e2a25dced05fdd59dfb059e7e284d; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< f02c41f87cfe61440c18bf77d1ef0a884b9ee2b5
- Anyone running Linux 3.10

## Description

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

gpio: rcar: Use raw\_spinlock to protect register access

Use raw\_spinlock in order to fix spurious messages about invalid context
when spinlock debugging is enabled. The lock is only used to serialize
register access.

    \[    4.239592\] =============================
    \[    4.239595\] \[ BUG: Invalid wait context \]
    \[    4.239599\] 6.13.0-rc7-arm64-renesas-05496-gd088502a519f \#35 Not tainted
    \[    4.239603\] -----------------------------
    \[    4.239606\] kworker/u8:5/76 is trying to lock:
    \[    4.239609\] ffff0000091898a0 (&p-\>lock){....}-{3:3}, at: gpio\_rcar\_config\_interrupt\_input\_mode+0x34/0x164
    \[    4.239641\] other info that might help us debug this:
    \[    4.239643\] context-{5:5}
    \[    4.239646\] 5 locks held by kworker/u8:5/76:
    \[    4.239651\]  \#0: ffff0000080fb148 ((wq\_completion)async){+.+.}-{0:0}, at: process\_one\_work+0x190/0x62c
    \[    4.250180\] OF: /soc/sound@ec500000/ports/port@0/endpoint: Read of boolean property 'frame-master' with a value.
    \[    4.254094\]  \#1: ffff80008299bd80 ((work\_completion)(&entry-\>work)){+.+.}-{0:0}, at: process\_one\_work+0x1b8/0x62c
    \[    4.254109\]  \#2: ffff00000920c8f8
    \[    4.258345\] OF: /soc/sound@ec500000/ports/port@1/endpoint: Read of boolean property 'bitclock-master' with a value.
    \[    4.264803\]  (&dev-\>mutex){....}-{4:4}, at: \_\_device\_attach\_async\_helper+0x3c/0xdc
    \[    4.264820\]  \#3: ffff00000a50ca40 (request\_class\#2){+.+.}-{4:4}, at: \_\_setup\_irq+0xa0/0x690
    \[    4.264840\]  \#4:
    \[    4.268872\] OF: /soc/sound@ec500000/ports/port@1/endpoint: Read of boolean property 'frame-master' with a value.
    \[    4.273275\] ffff00000a50c8c8 (lock\_class){....}-{2:2}, at: \_\_setup\_irq+0xc4/0x690
    \[    4.296130\] renesas\_sdhi\_internal\_dmac ee100000.mmc: mmc1 base at 0x00000000ee100000, max clock rate 200 MHz
    \[    4.304082\] stack backtrace:
    \[    4.304086\] CPU: 1 UID: 0 PID: 76 Comm: kworker/u8:5 Not tainted 6.13.0-rc7-arm64-renesas-05496-gd088502a519f \#35
    \[    4.304092\] Hardware name: Renesas Salvator-X 2nd version board based on r8a77965 (DT)
    \[    4.304097\] Workqueue: async async\_run\_entry\_fn
    \[    4.304106\] Call trace:
    \[    4.304110\]  show\_stack+0x14/0x20 (C)
    \[    4.304122\]  dump\_stack\_lvl+0x6c/0x90
    \[    4.304131\]  dump\_stack+0x14/0x1c
    \[    4.304138\]  \_\_lock\_acquire+0xdfc/0x1584
    \[    4.426274\]  lock\_acquire+0x1c4/0x33c
    \[    4.429942\]  \_raw\_spin\_lock\_irqsave+0x5c/0x80
    \[    4.434307\]  gpio\_rcar\_config\_interrupt\_input\_mode+0x34/0x164
    \[    4.440061\]  gpio\_rcar\_irq\_set\_type+0xd4/0xd8
    \[    4.444422\]  \_\_irq\_set\_trigger+0x5c/0x178
    \[    4.448435\]  \_\_setup\_irq+0x2e4/0x690
    \[    4.452012\]  request\_threaded\_irq+0xc4/0x190
    \[    4.456285\]  devm\_request\_threaded\_irq+0x7c/0xf4
    \[    4.459398\] ata1: link resume succeeded after 1 retries
    \[    4.460902\]  mmc\_gpiod\_request\_cd\_irq+0x68/0xe0
    \[    4.470660\]  mmc\_start\_host+0x50/0xac
    \[    4.474327\]  mmc\_add\_host+0x80/0xe4
    \[    4.477817\]  tmio\_mmc\_host\_probe+0x2b0/0x440
    \[    4.482094\]  renesas\_sdhi\_probe+0x488/0x6f4
    \[    4.486281\]  renesas\_sdhi\_internal\_dmac\_probe+0x60/0x78
    \[    4.491509\]  platform\_probe+0x64/0xd8
    \[    4.495178\]  really\_probe+0xb8/0x2a8
    \[    4.498756\]  \_\_driver\_probe\_device+0x74/0x118
    \[    4.503116\]  driver\_probe\_device+0x3c/0x154
    \[    4.507303\]  \_\_device\_attach\_driver+0xd4/0x160
    \[    4.511750\]  bus\_for\_each\_drv+0x84/0xe0
    \[    4.515588\]  \_\_device\_attach\_async\_helper+0xb0/0xdc
    \[    4.520470\]  async\_run\_entry\_fn+0x30/0xd8
    \[    4.524481\]  process\_one\_work+0x210/0x62c
    \[    4.528494\]  worker\_thread+0x1ac/0x340
    \[    4.532245\]  kthread+0x10c/0x110
    \[    4.535476\]  ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 389891ac9f678baf68e13623ef1308493af4b074; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 7c1f36f9c9aca507d317479a3d3388150ae40a87; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 3e300913c42041e81c5b17a970c4e078086ff2d1; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< c10365031f16514a29c812cd909085a6e4ea4b61; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< b42c84f9e4ec5bc2885e7fd80c79ec0352f5d2af; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 51ef3073493e2a25dced05fdd59dfb059e7e284d; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< f02c41f87cfe61440c18bf77d1ef0a884b9ee2b5 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21912. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21912.md
Affected: Linux >= 119f5e448d32c11faf22fe81f6f2d78467a47149, < 389891ac9f678baf68e13623ef1308493af4b074; >= 119f5e448d32c11faf22fe81f6f2d78467a47149, < 7c1f36f9c9aca507d317479a3d3388150ae40a87; >= 119f5e448d32c11faf22fe81f6f2d78467a47149, < 3e300913c42041e81c5b17a970c4e078086ff2d1; >= 119f5e448d32c11faf22fe8…
Fixed in: Linux 389891ac9f678baf68e13623ef1308493af4b074, Linux 7c1f36f9c9aca507d317479a3d3388150ae40a87, Linux 3e300913c42041e81c5b17a970c4e078086ff2d1, Linux 51ef3073493e2a25dced05fdd59dfb059e7e284d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21912 being exploited?

There is no confirmed exploitation: CVE-2025-21912 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21912?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21912?

Linux \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 389891ac9f678baf68e13623ef1308493af4b074; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 7c1f36f9c9aca507d317479a3d3388150ae40a87; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 3e300913c42041e81c5b17a970c4e078086ff2d1; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< c10365031f16514a29c812cd909085a6e4ea4b61; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< b42c84f9e4ec5bc2885e7fd80c79ec0352f5d2af; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< 51ef3073493e2a25dced05fdd59dfb059e7e284d; \>= 119f5e448d32c11faf22fe81f6f2d78467a47149, \< f02c41f87cfe61440c18bf77d1ef0a884b9ee2b5; Linux 3.10.

### Is there a fix for CVE-2025-21912?

Yes. Fixed in Linux 389891ac9f678baf68e13623ef1308493af4b074, Linux 7c1f36f9c9aca507d317479a3d3388150ae40a87, Linux 3e300913c42041e81c5b17a970c4e078086ff2d1, Linux 51ef3073493e2a25dced05fdd59dfb059e7e284d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21912?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7c1f36f9c9aca507d317479a3d3388150ae40a87>
- patch: <https://git.kernel.org/stable/c/3e300913c42041e81c5b17a970c4e078086ff2d1>
- patch: <https://git.kernel.org/stable/c/c10365031f16514a29c812cd909085a6e4ea4b61>
- patch: <https://git.kernel.org/stable/c/b42c84f9e4ec5bc2885e7fd80c79ec0352f5d2af>
- patch: <https://git.kernel.org/stable/c/51ef3073493e2a25dced05fdd59dfb059e7e284d>
- patch: <https://git.kernel.org/stable/c/f02c41f87cfe61440c18bf77d1ef0a884b9ee2b5>
- other: <https://git.kernel.org/stable/c/389891ac9f678baf68e13623ef1308493af4b074>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21912>

HTML: <https://flawdb.com/CVE-2025-21912> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21912>
