Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2023-53791 — kernel

⚪ Unknown ✅ No Known Exploit NVD
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

md: fix warning for holder mismatch from export_rdev()

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

md: fix warning for holder mismatch from export_rdev()

Commit a1d767191096 ("md: use mddev->external to select holder in

export_rdev()") fix the problem that 'claim_rdev' is used for

blkdev_get_by_dev() while 'rdev' is used for blkdev_put().

However, if mddev->external is changed from 0 to 1, then 'rdev' is used

for blkdev_get_by_dev() while 'claim_rdev' is used for blkdev_put(). And

this problem can be reporduced reliably by following:

New file: mdadm/tests/23rdev-lifetime

devname=${dev0##*/}

devt=cat /sys/block/$devname/dev

pid=""

runtime=2

clean_up_test() {

pill -9 $pid

echo clear > /sys/block/md0/md/array_state

}

trap 'clean_up_test' EXIT

add_by_sysfs() {

while true; do

echo $devt > /sys/block/md0/md/new_dev

done

}

remove_by_sysfs(){

while true; do

echo remove > /sys/block/md0/md/dev-${devname}/state

done

}

echo md0 > /sys/module/md_mod/parameters/new_array || die "create md0 failed"

add_by_sysfs &

pid="$pid $!"

remove_by_sysfs &

pid="$pid $!"

sleep $runtime

exit 0

Test cmd:

./test --save-logs --logdir=/tmp/ --keep-going --dev=loop --tests=23rdev-lifetime

Test result:

------------[ cut here ]------------

WARNING: CPU: 0 PID: 960 at block/bdev.c:618 blkdev_put+0x27c/0x330

Modules linked in: multipath md_mod loop

CPU: 0 PID: 960 Comm: test Not tainted 6.5.0-rc2-00121-g01e55c376936-dirty #50

RIP: 0010:blkdev_put+0x27c/0x330

Call Trace:

<TASK>

export_rdev.isra.23+0x50/0xa0 [md_mod]

mddev_unlock+0x19d/0x300 [md_mod]

rdev_attr_store+0xec/0x190 [md_mod]

sysfs_kf_write+0x52/0x70

kernfs_fop_write_iter+0x19a/0x2a0

vfs_write+0x3b5/0x770

ksys_write+0x74/0x150

__x64_sys_write+0x22/0x30

do_syscall_64+0x40/0x90

entry_SYSCALL_64_after_hwframe+0x63/0xcd

Fix the problem by recording if 'rdev' is used as holder.

Affected software

CVE-2023-53791 is recorded against 2 packages.

  • kernel (from 6.5.0 up to 6.5.5)
  • unknown

Timeline and source

Published on 9 December 2025 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2023-53791 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-12-09
Updated 2026-08-20
Modified 2026-08-12
Fix URL N/A

Affected Packages

Software From version Fixed in
kernel 6.5.0 6.5.5
unknown — —

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2023-53791?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2023-53791 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2023
✓