CVE-2023-53791 in Linuxinformazioni

Riassunto

di VulDB • 20/06/2026

Nel kernel Linux, è stata risolta la seguente vulnerabilità:

md: correzione dell'avviso per mismatch del detentore (holder) in export_rdev()

Il commit a1d767191096 ("md: use mddev->external to select holder in export_rdev()") corregge il problema per cui 'claim_rdev' viene utilizzato per blkdev_get_by_dev(), mentre 'rdev' è usato per blkdev_put().

Tuttavia, se mddev->external passa da 0 a 1, allora 'rdev' viene utilizzato per blkdev_get_by_dev() e 'claim_rdev' per blkdev_put(). Questo problema può essere riprodotto in modo affidabile seguendo la procedura indicata di seguito:

Nuovo file: mdadm/tests/23rdev-lifetime

```bash 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 ```

Comando di test:

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

Risultato del test:

```text ------------[ 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

```

La correzione del problema avviene registrando se 'rdev' è utilizzato come detentore (holder).

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Responsabile

Linux

Prenotare

09/12/2025

Divulgazione

09/12/2025

Moderazione

accettato

CPE

pronto

EPSS

0.00162

KEV

no

Attività

molto basso

Fonti

Do you know our Splunk app?

Download it now for free!