{"id":"CVE-2025-38527","published":"2025-08-16T11:12:20Z","modified":"2026-10-15T21:52:18Z","title":"smb: client: fix use-after-free in cifs_oplock_break","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free in cifs_oplock_break\n\nA race condition can occur in cifs_oplock_break() leading to a\nuse-after-free of the cinode structure when unmounting:\n\n  cifs_oplock_break()\n    _cifsFileInfo_put(cfile)\n      cifsFileInfo_put_final()\n        cifs_sb_deactive()\n          [last ref, start releasing sb]\n            kill_sb()\n              kill_anon_super()\n                generic_shutdown_super()\n                  evict_inodes()\n                    dispose_list()\n                      evict()\n                        destroy_inode()\n                          call_rcu(&inode->i_rcu, i_callback)\n    spin_lock(&cinode->open_file_lock)  <- OK\n                            [later] i_callback()\n                              cifs_free_inode()\n                                kmem_cache_free(cinode)\n    spin_unlock(&cinode->open_file_lock)  <- UAF\n    cifs_done_oplock_break(cinode)       <- UAF\n\nThe issue occurs when umount has already released its reference to the\nsuperblock. When _cifsFileInfo_put() calls cifs_sb_deactive(), this\nreleases the last reference, triggering the immediate cleanup of all\ninodes under RCU. However, cifs_oplock_break() continues to access the\ncinode after this point, resulting in use-after-free.\n\nFix this by holding an extra reference to the superblock during the\nentire oplock break operation. This ensures that the superblock and\nits inodes remain valid until the oplock break completes.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00489,"percentile":0.42972,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4256a483fe58af66a46cbf3dc48ff26e580d3308","tags":[]},{"url":"https://git.kernel.org/stable/c/0a4eec84d4d2c4085d4ed8630fd74e4b39033c1b","tags":[]},{"url":"https://git.kernel.org/stable/c/2baaf5bbab2ac474c4f92c10fcb3310f824db995","tags":[]},{"url":"https://git.kernel.org/stable/c/09bce2138a30ef10d8821c8c3f73a4ab7a5726bc","tags":[]},{"url":"https://git.kernel.org/stable/c/da11bd4b697b393a207f19a2ed7d382a811a3ddc","tags":[]},{"url":"https://git.kernel.org/stable/c/705c79101ccf9edea5a00d761491a03ced314210","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":8.59},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b98749cac4a695f084a5ff076f4510b23e353ecd, < 4256a483fe58af66a46cbf3dc48ff26e580d3308",">= b98749cac4a695f084a5ff076f4510b23e353ecd, < 0a4eec84d4d2c4085d4ed8630fd74e4b39033c1b",">= b98749cac4a695f084a5ff076f4510b23e353ecd, < 2baaf5bbab2ac474c4f92c10fcb3310f824db995",">= b98749cac4a695f084a5ff076f4510b23e353ecd, < 09bce2138a30ef10d8821c8c3f73a4ab7a5726bc",">= b98749cac4a695f084a5ff076f4510b23e353ecd, < da11bd4b697b393a207f19a2ed7d382a811a3ddc",">= b98749cac4a695f084a5ff076f4510b23e353ecd, < 705c79101ccf9edea5a00d761491a03ced314210","2429fcf06d3cb962693868ab0a927c9038f12a2d","1ee4f2d7cdcd4508cc3cbe3b2622d7177b89da12","53fc31a4853e30d6e8f142b824f724da27ff3e40","8092ecc306d81186a64cda42411121f4d35aaff4"]},{"vendor":"Linux","product":"Linux","versions":["5.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-15T21:51:26.435108Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-26114","exploited":false,"provenance":"source"}}