smb: client: avoid leaking refcount when cifs_sb_tlink() fails (Linux Linux)

CVE-2026-97556
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 11 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: avoid leaking refcount when cifs_sb_tlink() fails cifs_oplock_break() takes over the reference that cifs_queue_oplock_break() acquired when it queued the work, and drops it with _cifsFileInfo_put() once the break has been processed. Only in setups with "-o multiuser", cifs_sb_tlink() may fail, at which point cifs_oplock_break() returns without putting the file reference, mirroring the reference leak we already fixed in the companion patch to cifs_queue_oplock_break(). This would trigger a crash due to busy inodes on the next unmount: BUG: Dentry ... still in use (1) [unmount of cifs cifs] VFS: Busy inodes after unmount of cifs (cifs) Drop the reference on that path as well. Doing so before the out label mirrors the normal path, which also puts the reference before cifs_done_oplock_break(). Found by Sashiko code review. The failure path was not exercised at runtime.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected b99f490ea87ebcca3a429fd8837067feb56a4c7c < f1fd8a84181b3af03c508e0b02b4877945dd070a ; affected 5ee28bcfbaacf289eb25c662a2862542ea6ce6a7 < 55c5f095d4df14271b238f826e1392fda7b6e60e ; affected e8f5f849ffce24490eb9449e98312b66c0dba76f < e9c5bcc88b8337157e480c85a6d2f326bc265012 ; affected e8f5f849ffce24490eb9449e98312b66c0dba76f < 9ec991e148368e3207e98134c509a625097f7693 ; affected e8f5f849ffce24490eb9449e98312b66c0dba76f < dd03fd658ea59821505e0e643b6b7cbdf51c4e1d ; affected e8f5f849ffce24490eb9449e98312b66c0dba76f < 1d1b0f1d812a4011a57bc6c70492c34a2e46c6dd
Linux · Linuxaffected 6.5 ; unaffected 0 < 6.5 ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.* ; unaffected 6.12.111 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD