{"id":"CVE-2026-23292","aliases":["CVE-2026-23292"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: target: Fix recursive locking in __configfs_open_file()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: Fix recursive locking in __configfs_open_file()\n\nIn flush_write_buffer, &p->frag_sem is acquired and then the loaded store\nfunction is called, which, here, is target_core_item_dbroot_store().  This\nfunction called filp_open(), following which these functions were called\n(in reverse order), according to the call trace:\n\n  down_read\n  __configfs_open_file\n  do_dentry_open\n  vfs_open\n  do_open\n  path_openat\n  do_filp_open\n  file_open_name\n  filp_open\n  target_core_item_dbroot_store\n  flush_write_buffer\n  configfs_write_iter\n\ntarget_core_item_dbroot_store() tries to validate the new file path by\ntrying to open the file path provided to it; however, in this case, the bug\nreport shows:\n\ndb_root: not a directory: /sys/kernel/config/target/dbroot\n\nindicating that the same configfs file was tried to be opened, on which it\nis currently working on. Thus, it is trying to acquire frag_sem semaphore\nof the same file of which it already holds the semaphore obtained in\nflush_write_buffer(), leading to acquiring the semaphore in a nested manner\nand a possibility of recursive locking.\n\nFix this by modifying target_core_item_dbroot_store() to use kern_path()\ninstead of filp_open() to avoid opening the file using filesystem-specific\nfunction __configfs_open_file(), and further modifying it to make this fix\ncompatible.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: Fix recursive locking in __configfs_open_file()\n\nIn flush_write_buffer, &p->frag_sem is acquired and then the loaded store\nfunction is called, which, here, is target_core_item_dbroot_store().  This\nfunction called filp_open(), following which these functions were called\n(in reverse order), according to the call trace:\n\n  down_read\n  __configfs_open_file\n  do_dentry_open\n  vfs_open\n  do_open\n  path_openat\n  do_filp_open\n  file_open_name\n  filp_open\n  target_core_item_dbroot_store\n  flush_write_buffer\n  configfs_write_iter\n\ntarget_core_item_dbroot_store() tries to validate the new file path by\ntrying to open the file path provided to it; however, in this case, the bug\nreport shows:\n\ndb_root: not a directory: /sys/kernel/config/target/dbroot\n\nindicating that the same configfs file was tried to be opened, on which it\nis currently working on. Thus, it is trying to acquire frag_sem semaphore\nof the same file of which it already holds the semaphore obtained in\nflush_write_buffer(), leading to acquiring the semaphore in a nested manner\nand a possibility of recursive locking.\n\nFix this by modifying target_core_item_dbroot_store() to use kern_path()\ninstead of filp_open() to avoid opening the file using filesystem-specific\nfunction __configfs_open_file(), and further modifying it to make this fix\ncompatible.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: target: Corrección de bloqueo recursivo en __configfs_open_file()\n\nEn flush_write_buffer, se adquiere &amp;p-&gt;frag_sem y luego se llama a la función de almacenamiento cargada, que, aquí, es target_core_item_dbroot_store(). Esta función llamó a filp_open(), tras lo cual se llamaron a estas funciones (en orden inverso), según el rastro de llamadas:\n\n  down_read\n  __configfs_open_file\n  do_dentry_open\n  vfs_open\n  do_open\n  path_openat\n  do_filp_open\n  file_open_name\n  filp_open\n  target_core_item_dbroot_store\n  flush_write_buffer\n  configfs_write_iter\n\ntarget_core_item_dbroot_store() intenta validar la nueva ruta de archivo intentando abrir la ruta de archivo que se le proporcionó; sin embargo, en este caso, el informe de error muestra:\n\ndb_root: not a directory: /sys/kernel/config/target/dbroot\n\nindicando que se intentó abrir el mismo archivo configfs, en el que está trabajando actualmente. Así, está intentando adquirir el semáforo frag_sem del mismo archivo del que ya posee el semáforo obtenido en flush_write_buffer(), lo que lleva a adquirir el semáforo de forma anidada y una posibilidad de bloqueo recursivo.\n\nSolucione esto modificando target_core_item_dbroot_store() para usar kern_path() en lugar de filp_open() para evitar abrir el archivo usando la función específica del sistema de archivos __configfs_open_file(), y modificándolo aún más para hacer que esta corrección sea compatible.","source":"nvd"}],"published":"2026-03-25T10:26:50.408Z","modified":"2026-11-05T22:18:11.993Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"3161ef61f121d4573cad5b57c92188dcd9b284b3","status":"affected"},{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"e8ef82cb6443d5f3260b1b830e17f03dda4229ea","status":"affected"},{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"4fcfa424a581d823cb1a9676e3eefe6ca17e453a","status":"affected"},{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"9a5641024fbfd9b24fe65984ad85fea10a3ae438","status":"affected"},{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"142eacb50fb903a4c10dee7e67b6e79ebb36a582","status":"affected"},{"type":"git","introduced":"b0841eefd9693827afb9888235e26ddd098f9cef","fixed":"14d4ac19d1895397532eec407433c5d74d9da53b","status":"affected"},{"type":"git","version":"49824b5c875087a52672b0c8e8ecbefe6f773532","status":"affected"},{"type":"git","version":"09e21253d17f53bdb5aac0e0dbd057a29fcbe8d1","status":"affected"},{"type":"git","version":"0dfc45be875a378c2a3a4d6ed8e668ec8eb75073","status":"affected"},{"type":"semver","introduced":"4.9.201","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.154","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.84","fixed":"4.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.130","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.77","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.17","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.7","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9.201","fixed":"4.10"},{"status":"affected","introduced":"4.14.154","fixed":"4.15"},{"status":"affected","introduced":"4.19.84","fixed":"4.20"},{"status":"affected","introduced":"5.3.1","fixed":"6.1.167"},{"status":"affected","introduced":"6.2","fixed":"6.6.130"},{"status":"affected","introduced":"6.7","fixed":"6.12.77"},{"status":"affected","introduced":"6.13","fixed":"6.18.17"},{"status":"affected","introduced":"6.19","fixed":"6.19.7"},{"status":"affected","version":"5.3"},{"status":"affected","version":"5.3"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3161ef61f121d4573cad5b57c92188dcd9b284b3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8ef82cb6443d5f3260b1b830e17f03dda4229ea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fcfa424a581d823cb1a9676e3eefe6ca17e453a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a5641024fbfd9b24fe65984ad85fea10a3ae438","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/142eacb50fb903a4c10dee7e67b6e79ebb36a582","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14d4ac19d1895397532eec407433c5d74d9da53b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:25:22.318Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23292","url":"https://www.cve.org/CVERecord?id=CVE-2026-23292","licence":"CVE Terms of Use","modified":"2026-11-05T21:33:35.930Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23292","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23292","licence":"Public domain","modified":"2026-11-05T22:18:11.993Z"}],"updatedAt":"2026-11-25T22:59:16.655Z","epss":{"score":0.00149,"percentile":0.04303,"date":"2026-12-01T12:00:22.000Z"}}