# CVE-2025-68368: md: init bioset in mddev\_init

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T10:32:54.765Z
- **Modified:** 2026-10-21T13:18:23.260Z

## Who should check

- Anyone running Linux \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 903fb4851ee8d291372d285f616c398a9c4cbbec; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 9d37fe37dfa0833a8768740f0575e0ffd793cb4a; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 381a3ce1c0ffed647c9b913e142b099c7e9d5afc
- Anyone running Linux 6.12

## Description

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

md: init bioset in mddev\_init

IO operations may be needed before md\_run(), such as updating metadata
after writing sysfs. Without bioset, this triggers a NULL pointer
dereference as below:

 BUG: kernel NULL pointer dereference, address: 0000000000000020
 Call Trace:
  md\_update\_sb+0x658/0xe00
  new\_level\_store+0xc5/0x120
  md\_attr\_store+0xc9/0x1e0
  sysfs\_kf\_write+0x6f/0xa0
  kernfs\_fop\_write\_iter+0x141/0x2a0
  vfs\_write+0x1fc/0x5a0
  ksys\_write+0x79/0x180
  \_\_x64\_sys\_write+0x1d/0x30
  x64\_sys\_call+0x2818/0x2880
  do\_syscall\_64+0xa9/0x580
  entry\_SYSCALL\_64\_after\_hwframe+0x4b/0x53

Reproducer
\`\`\`
  mdadm -CR /dev/md0 -l1 -n2 /dev/sd\[cd\]
  echo inactive \> /sys/block/md0/md/array\_state
  echo 10 \> /sys/block/md0/md/new\_level
\`\`\`

mddev\_init() can only be called once per mddev, no need to test if bioset
has been initialized anymore.

## Affected and fixed versions

- Linux: \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 903fb4851ee8d291372d285f616c398a9c4cbbec; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 9d37fe37dfa0833a8768740f0575e0ffd793cb4a; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 381a3ce1c0ffed647c9b913e142b099c7e9d5afc (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 381a3ce1c0ffed647c9b913e142b099c7e9d5afc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68368.md
Affected: Linux >= d981ed8419303ed12351eea8541ad6cb76455fe3, < 903fb4851ee8d291372d285f616c398a9c4cbbec; >= d981ed8419303ed12351eea8541ad6cb76455fe3, < 9d37fe37dfa0833a8768740f0575e0ffd793cb4a; >= d981ed8419303ed12351eea8541ad6cb76455fe3, < 381a3ce1c0ffed647c9b913e142b099c7e9d5afc; Linux 6.12
Fixed in: Linux 903fb4851ee8d291372d285f616c398a9c4cbbec, Linux 9d37fe37dfa0833a8768740f0575e0ffd793cb4a, Linux 381a3ce1c0ffed647c9b913e142b099c7e9d5afc

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-68368 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 903fb4851ee8d291372d285f616c398a9c4cbbec; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 9d37fe37dfa0833a8768740f0575e0ffd793cb4a; \>= d981ed8419303ed12351eea8541ad6cb76455fe3, \< 381a3ce1c0ffed647c9b913e142b099c7e9d5afc; Linux 6.12.

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

Yes. Fixed in Linux 903fb4851ee8d291372d285f616c398a9c4cbbec, Linux 9d37fe37dfa0833a8768740f0575e0ffd793cb4a, Linux 381a3ce1c0ffed647c9b913e142b099c7e9d5afc. Upgrade Linux to 381a3ce1c0ffed647c9b913e142b099c7e9d5afc or later.

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

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

- other: <https://git.kernel.org/stable/c/903fb4851ee8d291372d285f616c398a9c4cbbec>
- other: <https://git.kernel.org/stable/c/9d37fe37dfa0833a8768740f0575e0ffd793cb4a>
- other: <https://git.kernel.org/stable/c/381a3ce1c0ffed647c9b913e142b099c7e9d5afc>

## 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-68368>

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