Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-53791

UNSCOREDEPSS 11%

md: fix warning for holder mismatch from export_rdev()

Mitigation

  • Upgrade Linux to 99892147f028d711f9d40fefad4f33632593864c or later.

Who should check

  • Anyone running Linux >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99fcd427178d0f58f5520f8f01df727f8eaeb2c7; >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99892147f028d711f9d40fefad4f33632593864c
  • Anyone running Linux 6.5

Vulnerability facts

Affected
Linux >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99fcd427178d0f58f5520f8f01df727f8eaeb2c7; >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99892147f028d711f9d40fefad4f33632593864c; Linux 6.5
Fixed in
Linux 99fcd427178d0f58f5520f8f01df727f8eaeb2c7, Linux 99892147f028d711f9d40fefad4f33632593864c
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
EPSS
0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
Published
Modified

Description

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 and fixed versions

Package / productAffectedFixedSource
Linux>= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99fcd427178d0f58f5520f8f01df727f8eaeb2c7; >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99892147f028d711f9d40fefad4f33632593864c—cvelist
Linux6.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-53791. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53791.md
Affected: Linux >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99fcd427178d0f58f5520f8f01df727f8eaeb2c7; >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99892147f028d711f9d40fefad4f33632593864c; Linux 6.5
Fixed in: Linux 99fcd427178d0f58f5520f8f01df727f8eaeb2c7, Linux 99892147f028d711f9d40fefad4f33632593864c

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.

References

FAQ

Is CVE-2023-53791 being exploited?

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

How serious is CVE-2023-53791?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2023-53791?

Linux >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99fcd427178d0f58f5520f8f01df727f8eaeb2c7; >= a1d7671910965ca9f8f0377e7e3bfd1179fba4d8, < 99892147f028d711f9d40fefad4f33632593864c; Linux 6.5.

Is there a fix for CVE-2023-53791?

Yes. Fixed in Linux 99fcd427178d0f58f5520f8f01df727f8eaeb2c7, Linux 99892147f028d711f9d40fefad4f33632593864c. Upgrade Linux to 99892147f028d711f9d40fefad4f33632593864c or later.

How do I check if I'm affected by CVE-2023-53791?

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.

Sponsors