CVE-2025-68368
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-68368 is a NULL pointer dereference vulnerability in the Linux kernel's MD (Multiple Devices/software RAID) subsystem. The flaw arises because the bioset structure is not initialized in mddev_init(), causing a kernel panic when IO operations (such as metadata updates via sysfs) are triggered before md_run() is called. Affected versions include Linux kernel builds from commit d981ed8419303ed12351eea8541ad6cb76455fe3 up to (but not including) the patched commits, with fixes landing in Linux 6.18.2 and 6.19-rc1. The vulnerability was published on December 24, 2025, and carries an estimated CVSS severity of Medium with an EPSS score of approximately 0.018% (Feedly, EUVD).

Technical details

The root cause is a missing initialization of the bioset member in mddev_init() (CWE-476: NULL Pointer Dereference). When a user writes to a sysfs attribute (e.g., new_level) on an inactive MD array before md_run() is invoked, the kernel attempts to perform IO via md_update_sb(), which dereferences the uninitialized bioset pointer, triggering a kernel NULL pointer dereference at address 0x0000000000000020. The call trace proceeds through md_update_sbnew_level_storemd_attr_storesysfs_kf_writekernfs_fop_write_itervfs_write. A minimal reproducer involves creating an MD RAID1 array, setting it to inactive state, and then writing a new RAID level via sysfs (Feedly).

Impact

Successful exploitation causes a kernel NULL pointer dereference, resulting in a kernel panic (BUG) and system crash, directly impacting availability. Because this is a local denial-of-service condition triggered through sysfs writes, it does not directly expose confidential data or allow code execution in typical configurations. The impact is limited to systems where unprivileged or low-privileged local users have write access to MD array sysfs attributes (Feedly, EUVD).

Exploitation steps

  1. Local Access: Obtain local access to a Linux system running a vulnerable kernel version with the MD subsystem enabled.
  2. Create MD Array: Use mdadm to create a RAID1 array: mdadm -CR /dev/md0 -l1 -n2 /dev/sdc /dev/sdd.
  3. Set Array Inactive: Write inactive to the array state sysfs attribute: echo inactive > /sys/block/md0/md/array_state.
  4. Trigger Sysfs Write: Write a new RAID level to the sysfs attribute before md_run() is called: echo 10 > /sys/block/md0/md/new_level.
  5. Kernel Panic: The kernel attempts to call md_update_sb(), dereferences the uninitialized bioset pointer, and triggers a NULL pointer dereference, crashing the system (Feedly).

Indicators of compromise

  • Logs: Kernel logs (dmesg or /var/log/kern.log) showing BUG: kernel NULL pointer dereference, address: 0000000000000020 with a call trace including md_update_sb, new_level_store, md_attr_store, and sysfs_kf_write.
  • System Behavior: Unexpected system crash or kernel panic on systems using Linux software RAID (MD) arrays.
  • Process/Audit Logs: Audit logs recording writes to /sys/block/md*/md/new_level or /sys/block/md*/md/array_state by local users, particularly setting state to inactive followed by a level change.

Mitigation and workarounds

The fix has been merged into the Linux kernel stable tree: patch commit 9d37fe37dfa0833a8768740f0575e0ffd793cb4a (for the 6.12.x stable branch) and 381a3ce1c0ffed647c9b913e142b099c7e9d5afc. The fix is included in Linux 6.18.2 and 6.19-rc1. Ubuntu has issued security notices USN-8177-1, USN-8177-2, USN-8183-1, USN-8183-2, USN-8245-1, and USN-8257-1 addressing this vulnerability. Administrators should update to a patched kernel version; as a temporary workaround, restricting local user write access to MD sysfs attributes (e.g., via file permissions or SELinux/AppArmor policies) can reduce exposure (Ubuntu USN-8177-1, Ubuntu USN-8183-1, Ubuntu USN-8245-1).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management