nfsd: clear CALLBACK_RUNNING on failed delegation recall queue
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel b036727d334b1b7cd4c1f1fba3b59ba93a6bbe96, Kernel cb2d0c4d1b3d301d042ed61365eaa8cb0141a254, Kernel 3c13a8dda2048995dae656a2be1d34bbe46aaa52 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: nfsd: clear CALLBACK_RUNNING on failed delegation recall queue nfsd_break_one_deleg() sets NFSD4_CALLBACK_RUNNING via test_and_set_bit at entry to serialize recall work, then calls nfsd4_run_cb() to queue the recall. When the queue attempt fails the refcount bump is undone, but the RUNNING bit is left set. The only site that clears the bit is nfsd41_destroy_cb() (fs/nfsd/nfs4callback.c), which runs from the workqueue and is therefore unreachable when nothing was queued. The bit becomes a permanent latch on dp->dl_recall.cb_flags: every subsequent break_lease() on the same delegation hits the early-return guard in nfsd_break_one_deleg() and silently skips the recall, so the delegation is never broken and the conflicting open or lock stalls. Fix by clearing NFSD4_CALLBACK_RUNNING on the !queued branch alongside the refcount_dec.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1054e8ffc5c492f341bdf1888b882f1d163dd3d8 <b036727d334b1b7cd4c1f1fba3b59ba93a6bbe96, >=1054e8ffc5c492f341bdf1888b882f1d163dd3d8 <cb2d0c4d1b3d301d042ed61365eaa8cb0141a254, >=918b58471bf98b0af31bb79f911e36cbde1d37db <3c13a8dda2048995dae656a2be1d34bbe46aaa52, =6.15, >=1054e8ffc5c492f341bdf1888b882f1d163dd3d8 <b137930ee52e3ef38915a3511d4c070463b63a32 | b036727d334b1b7cd4c1f1fba3b59ba93a6bbe96, cb2d0c4d1b3d301d042ed61365eaa8cb0141a254, 3c13a8dda2048995dae656a2be1d34bbe46aaa52, b137930ee52e3ef38915a3511d4c070463b63a32 |
| linux-kernel: Kernel | >=6.19.0 <7.2.4, >=6.15.0 <6.18.50 | 7.2.4, 6.18.50 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket