block/rnbd-srv: don't free the device on a sysfs error
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
block/rnbd-srv: don't free the device on a sysfs error
rnbd_srv_create_dev_sysfs() drops the only kobject reference on its error paths, and the release function frees the rnbd_srv_dev. process_msg_open() keeps using it and ends in destroy_device() with a list_del() and a second kfree(). This doesn't need memory pressure: a client opening a device while its last mapping goes away gets -EEXIST from kobject_add() against the old directory.
Only undo kobject_add() on failure and leave the reference to destroy_device(). Initialise the kobject once, the next open retries.
| Product | Versions |
|---|---|
| Linux Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before 49f610e56795fe59acbedb673288606a4d6219ba Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before f65028b2fadec4919b77bc55130ab8401800fbe0 Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before 93deb589f24224dfc43e5dc03c3f9c9ea2e893cd Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2 Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before 6e1b4893c19d681a35c7889e566044bf7b3a4128 Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before f000dff3584a5f79ab8006fd019618f01c4d4918 Affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to before d9667ade40f986c565769a900ced6ee95edd33c6 Affected |
| Linux Linux | 5.8 Affectedbefore 5.8 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/49f610e56795fe59acbedb673288606a4d6219ba
- https://git.kernel.org/stable/c/f65028b2fadec4919b77bc55130ab8401800fbe0
- https://git.kernel.org/stable/c/93deb589f24224dfc43e5dc03c3f9c9ea2e893cd
- https://git.kernel.org/stable/c/c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2
- https://git.kernel.org/stable/c/6e1b4893c19d681a35c7889e566044bf7b3a4128
- https://git.kernel.org/stable/c/f000dff3584a5f79ab8006fd019618f01c4d4918
- https://git.kernel.org/stable/c/d9667ade40f986c565769a900ced6ee95edd33c6
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.