scsi: target: Fix recursive locking in __configfs_open_file()

Summary

CVECVE-2026-23292
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-03-25 11:16:24 UTC
Updated2026-05-27 13:43:27 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: scsi: target: Fix recursive locking in __configfs_open_file() In flush_write_buffer, &p->frag_sem is acquired and then the loaded store function is called, which, here, is target_core_item_dbroot_store(). This function called filp_open(), following which these functions were called (in reverse order), according to the call trace: down_read __configfs_open_file do_dentry_open vfs_open do_open path_openat do_filp_open file_open_name filp_open target_core_item_dbroot_store flush_write_buffer configfs_write_iter target_core_item_dbroot_store() tries to validate the new file path by trying to open the file path provided to it; however, in this case, the bug report shows: db_root: not a directory: /sys/kernel/config/target/dbroot indicating that the same configfs file was tried to be opened, on which it is currently working on. Thus, it is trying to acquire frag_sem semaphore of the same file of which it already holds the semaphore obtained in flush_write_buffer(), leading to acquiring the semaphore in a nested manner and a possibility of recursive locking. Fix this by modifying target_core_item_dbroot_store() to use kern_path() instead of filp_open() to avoid opening the file using filesystem-specific function __configfs_open_file(), and further modifying it to make this fix compatible.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-674

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef 3161ef61f121d4573cad5b57c92188dcd9b284b3 git Not specified
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef e8ef82cb6443d5f3260b1b830e17f03dda4229ea git Not specified
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef 4fcfa424a581d823cb1a9676e3eefe6ca17e453a git Not specified
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef 9a5641024fbfd9b24fe65984ad85fea10a3ae438 git Not specified
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef 142eacb50fb903a4c10dee7e67b6e79ebb36a582 git Not specified
CNA Linux Linux affected b0841eefd9693827afb9888235e26ddd098f9cef 14d4ac19d1895397532eec407433c5d74d9da53b git Not specified
CNA Linux Linux affected 49824b5c875087a52672b0c8e8ecbefe6f773532 git Not specified
CNA Linux Linux affected 09e21253d17f53bdb5aac0e0dbd057a29fcbe8d1 git Not specified
CNA Linux Linux affected 0dfc45be875a378c2a3a4d6ed8e668ec8eb75073 git Not specified
CNA Linux Linux affected 4.9.201 4.10 semver Not specified
CNA Linux Linux affected 4.14.154 4.15 semver Not specified
CNA Linux Linux affected 4.19.84 4.20 semver Not specified
CNA Linux Linux affected 5.3 Not specified
CNA Linux Linux unaffected 5.3 semver Not specified
CNA Linux Linux unaffected 6.1.167 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.130 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.77 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.17 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.7 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/3161ef61f121d4573cad5b57c92188dcd9b284b3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/e8ef82cb6443d5f3260b1b830e17f03dda4229ea 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/14d4ac19d1895397532eec407433c5d74d9da53b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/4fcfa424a581d823cb1a9676e3eefe6ca17e453a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/142eacb50fb903a4c10dee7e67b6e79ebb36a582 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/9a5641024fbfd9b24fe65984ad85fea10a3ae438 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report