# CVE-2025-38621: md: make rdev\_addable usable for rcu mode

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-22 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2025-38621, DEBIAN-CVE-2025-38621, CGA-22hp-px76-4528, CGA-2637-whgq-vq25, CGA-28f6-gcgm-6xwp, CGA-292j-r738-r24w, CGA-2j8v-pf49-5wg2, CGA-39ph-fcxj-pwqr, CGA-3r5w-v3xp-6c26, CGA-3vw7-698r-gqwr, CGA-4hr8-94pv-f926, CGA-4vgv-cv35-cj2h, CGA-4wrw-jh4j-5mhf, CGA-52vx-782w-7ff4, CGA-549r-29jf-vpwx, CGA-56q9-frf7-x55m, CGA-587f-3pwj-vf82, CGA-598w-jf2f-hxjm, CGA-5cq3-cj77-wcq9, CGA-5jff-vjx6-37rq, CGA-5whp-mf5f-cwh2, CGA-68jf-rr56-cx3v, CGA-6924-4wmv-fqqq, CGA-6mx5-q74j-gv7j, CGA-73pw-cgp4-6fcr, CGA-73ww-3xx5-4rfj, CGA-7492-8rph-8jxx, CGA-77c4-77r5-x6r4, CGA-7f35-9mm6-wv2x, CGA-7q5p-2fcm-cc25, CGA-7r9g-w3fx-jg46, CGA-7rq4-w55v-ph4v, CGA-7vxx-cw8q-6wpv, CGA-7xj6-9q56-9j3g, CGA-8gm9-jggh-88m3, CGA-8vmf-cw68-8g9q, CGA-8wqv-2j52-xm69, CGA-9463-r8pp-vg69, CGA-9fgg-8vf7-7qvh, CGA-9gpp-rh5c-grg6, CGA-c5c3-f7c7-r653, CGA-chc3-5hmx-qw8m, CGA-chvx-rr4q-fr3v, CGA-cjxc-355m-822f, CGA-cm6q-24v9-8f9g, CGA-cmqq-fqp3-m44x, CGA-cp29-wwmf-vwv6, CGA-f5q6-f67v-rvcc, CGA-fjr9-2h6g-66mp, CGA-frc9-h5w7-jw82, CGA-g9cf-5947-3m4h, CGA-gmrj-f326-fh6r, CGA-gx2j-j984-fffj, CGA-gxqp-phpj-c8p9, CGA-h279-g7hq-9qrx, CGA-h287-gxwf-c3j8, CGA-h4mr-m7w2-5663, CGA-h5xv-g5vr-gr8h, CGA-h7j5-72w6-6945, CGA-h9fv-qjqf-3jjc, CGA-hp4q-f7mv-j23h, CGA-hrvc-82ph-whc8, CGA-hvf3-6vcw-972g, CGA-j64w-83w3-v976, CGA-jgjj-rjv5-5mgh, CGA-jp79-6rq9-gxrm, CGA-jq56-p4h2-gfjg, CGA-jqv4-j4j4-r36x, CGA-m5r8-4v74-hqxx, CGA-mf23-ccwc-4f5v, CGA-mh4v-rqmj-hcmg, CGA-mjwf-669x-rmgj, CGA-mw34-p83j-jh5g, CGA-p3x2-5c57-63fh, CGA-p5pc-3hpr-mc98, CGA-p994-r5m4-qc77, CGA-ppmp-xcp5-jw43, CGA-pwv9-86wx-jc9r, CGA-pwxh-88pf-jc5j, CGA-q57f-696g-5j7x, CGA-q9m3-gxcw-hqjj, CGA-qj7x-q833-vx66, CGA-qjf2-gpgq-5624, CGA-qmvw-3xww-hm45, CGA-qp89-9476-hp84, CGA-qqhh-5xx7-qmf3, CGA-r345-mcwp-4rqv, CGA-r5wf-4vvm-9m8c, CGA-rf87-m2xq-hv2q, CGA-rp6h-7w5m-7c7j, CGA-rvxj-77gq-fh4p, CGA-v3vm-894q-89rf, CGA-v57p-p56x-474q, CGA-vf9q-vmw9-999q, CGA-vvj3-527h-773m, CGA-vvq6-hx2c-rq33, CGA-vvx4-x3qw-73wh, CGA-w2f4-2pqp-3x32, CGA-w3fc-wfgx-cg3h, CGA-w8gp-5f3q-xcvq, CGA-wg78-4fvj-m2g6, CGA-wj2p-4p8p-5vm2, CGA-wmrw-r9pc-7qv9, CGA-wp3w-m4xf-5c66, CGA-wq8w-7vqf-wmvf, CGA-wwh5-gg79-w6g5, CGA-x237-2jv4-w9hq, CGA-x35f-5mmc-pwxx, CGA-x4rq-q5gm-4ppf, CGA-x4xv-x2h9-62p7, CGA-x5j8-vhx4-g535, CGA-x5p8-fvq3-gq4g, CGA-x6p4-35qq-2334, CGA-x7vr-rjc3-q4c3, CGA-xgq8-8f34-8mj5, CGA-xj9v-cxf3-7q2q, CGA-xjfq-2j8f-886f
- Record: https://cvemate.com/vulnerability/CVE-2025-38621 · JSON: https://cvemate.com/vulnerability/CVE-2025-38621/json

## Description

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

md: make rdev_addable usable for rcu mode

Our testcase trigger panic:

BUG: kernel NULL pointer dereference, address: 00000000000000e0
...
Oops: Oops: 0000 [#1] SMP NOPTI
CPU: 2 UID: 0 PID: 85 Comm: kworker/2:1 Not tainted 6.16.0+ #94
PREEMPT(none)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.16.1-2.fc37 04/01/2014
Workqueue: md_misc md_start_sync
RIP: 0010:rdev_addable+0x4d/0xf0
...
Call Trace:
 <TASK>
 md_start_sync+0x329/0x480
 process_one_work+0x226/0x6d0
 worker_thread+0x19e/0x340
 kthread+0x10f/0x250
 ret_from_fork+0x14d/0x180
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Modules linked in: raid10
CR2: 00000000000000e0
---[ end trace 0000000000000000 ]---
RIP: 0010:rdev_addable+0x4d/0xf0

md_spares_need_change in md_start_sync will call rdev_addable which
protected by rcu_read_lock/rcu_read_unlock. This rcu context will help
protect rdev won't be released, but rdev->mddev will be set to NULL
before we call synchronize_rcu in md_kick_rdev_from_array. Fix this by
using READ_ONCE and check does rdev->mddev still alive.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.189%, percentile 8.848%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 160)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.78-r0 \| \< 6.12.62-r0 \| \< 6.12.60-r4 \| \< 6.12.77-r2 \| \< 6.12.74-r1 \| \< 6.12.68-r1 \| \< 6.12.77-r0 \| \< 6.12.74-r0 \| \< 6.12.65-r0 \| \< 6.12.63-r0 \| \< 6.12.68-r0 \| \< 6.12.62-r1 \| \< 6.12.65-r2 \| \< 6.12.62-r2 \| \< 6.12.80-r0 \| \< 6.12.72-r0 \| \< 6.12.65-r1 \| \< 6.12.66-r0 \| \< 6.12.77-r1 \| \< 6.12.69-r0 \| \< 6.12.67-r0 \| \< 6.12.76-r0 \| \< 6.12.72-r1 \| \< 6.12.70-r0 \| \< 6.12.71-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.62-r2 \| \< 6.12.62-r1 \| \< 6.12.77-r1 \| \< 6.12.74-r1 \| \< 6.12.65-r3 \| \< 6.12.65-r4 \| \< 6.12.76-r0 \| \< 6.12.70-r0 \| \< 6.12.66-r0 \| \< 6.12.60-r4 \| \< 6.12.68-r0 \| \< 6.12.62-r0 \| \< 6.12.77-r2 \| \< 6.12.74-r0 \| \< 6.12.63-r0 \| \< 6.12.60-r3 \| \< 6.12.71-r0 \| \< 6.12.65-r1 \| \< 6.12.72-r0 \| \< 6.12.65-r2 \| \< 6.12.69-r0 \| \< 6.12.80-r0 \| \< 6.12.67-r0 \| \< 6.12.78-r0 \| \< 6.12.77-r0
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.68-r1 \| \< 6.12.70-r0 \| \< 6.12.77-r0 \| \< 6.12.74-r1 \| \< 6.12.66-r0 \| \< 6.12.67-r0 \| \< 6.12.76-r0 \| \< 6.12.63-r0 \| \< 6.12.65-r0 \| \< 6.12.69-r0 \| \< 6.12.72-r0 \| \< 6.12.62-r0 \| \< 6.12.74-r0 \| \< 6.12.77-r2 \| \< 6.12.68-r0 \| \< 6.12.60-r3 \| \< 6.12.80-r0 \| \< 6.12.65-r1 \| \< 6.12.60-r4 \| \< 6.12.78-r0 \| \< 6.12.77-r1 \| \< 6.12.65-r2 \| \< 6.12.62-r2 \| \< 6.12.62-r1 \| \< 6.12.71-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.70-r0 \| \< 6.12.65-r1 \| \< 6.12.74-r1 \| \< 6.12.74-r0 \| \< 6.12.68-r0 \| \< 6.12.76-r0 \| \< 6.12.72-r0 \| \< 6.12.65-r2 \| \< 6.12.77-r2 \| \< 6.12.77-r0 \| \< 6.12.66-r0 \| \< 6.12.69-r0 \| \< 6.12.71-r0 \| \< 6.12.77-r1 \| \< 6.12.78-r0 \| \< 6.12.80-r0 \| \< 6.12.67-r0
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.72-r0 \| \< 6.12.77-r1 \| \< 6.12.71-r0 \| \< 6.12.68-r0 \| \< 6.12.77-r2 \| \< 6.12.65-r1 \| \< 6.12.77-r0 \| \< 6.12.78-r0 \| \< 6.12.68-r1 \| \< 6.12.74-r0 \| \< 6.12.80-r0 \| \< 6.12.76-r0 \| \< 6.12.67-r0 \| \< 6.12.66-r0 \| \< 6.12.74-r1 \| \< 6.12.70-r0 \| \< 6.12.69-r0 \| \< 6.12.65-r2
- debian linux (Debian): \< 6.12.111-1 \| \< 6.16.3-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-149.149
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/d713e105a6137d3f54f09d4d9e2273482057ca17>
- <https://git.kernel.org/stable/c/b5fbe940862339cdcc34dea7a057ad18d18fa137>
- <https://git.kernel.org/stable/c/13017b427118f4311471ee47df74872372ca8482>
- <https://ubuntu.com/security/CVE-2025-38621>
- <https://www.cve.org/CVERecord?id=CVE-2025-38621>
- <https://git.kernel.org/linus/13017b427118f4311471ee47df74872372ca8482>
- <https://security-tracker.debian.org/tracker/CVE-2025-38621>
- <https://ubuntu.com/security/notices/USN-9023-1>
- <https://ubuntu.com/security/notices/USN-9025-1>
- <https://ubuntu.com/security/notices/USN-9022-1>
- <https://ubuntu.com/security/notices/USN-9024-1>
- <https://ubuntu.com/security/notices/USN-9026-1>
- <https://ubuntu.com/security/notices/USN-9039-1>
- <https://ubuntu.com/security/notices/USN-9040-1>
- <https://ubuntu.com/security/notices/USN-9066-1>
- <https://ubuntu.com/security/notices/USN-9091-1>
- <https://ubuntu.com/security/notices/USN-9183-1>
- <https://ubuntu.com/security/notices/USN-9192-1>

---

Data as of 2026-12-06T04:48:36.349Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
