Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437)
@ 2026-11-07 23:03 Mohammed omran
  2026-11-08 13:52 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Mohammed omran @ 2026-11-07 23:03 UTC (permalink / raw)
  To: stable; +Cc: stfrench

Hi,

three ksmbd deferred file-lock UAF fixes landed upstream in June 2026 and
were backported to 6.1.y, 6.6.y, 6.12.y, 6.18.y and 7.1.y, but did not
reach 5.15.y (5.15.225):
  f580d27e8928 ksmbd: fix use-after-free of a deferred file_lock on
double SMB2_CANCEL
  d20d1c8ba576 ksmbd: fix UAF of struct file_lock in SMB2_LOCK
deferred-lock cancellation (CVE-2026-64396)
  10f293a07f9e ksmbd: fix use-after-free of a deferred file_lock on
SMB2_CLOSE then SMB2_CANCEL (CVE-2026-64437)

Evidence:
- The CNA record for CVE-2026-64396 lists the 5.15 branch as affected
  (vulnerable since e2f34481b24d, "cifsd: add server-side procedures for
  SMB3") with no bound fix for it, while every later branch has one.
- The deferred-lock async machinery is fully present in 5.15.y's copy of
  the file (fs/ksmbd/smb2pdu.c): setup_async_work, release_async_work,
  smb2_remove_blocked_lock are all defined/used; note the file moved to
  fs/smb/server/smb2pdu.c in mainline, which may be why the backport
  tooling skipped it.
- linux-5.15.y's history for fs/ksmbd/smb2pdu.c (through 5.15.225,
  2026-11-06) contains CommitDate back to 2024-11 and shows no deferred
  lock fixes; the branch is actively maintained (fresh fixes landed on
  2026-10-30).

Note: 5.15.y predates all three fixes, so it holds the original form of
the UAF (a second SMB2_CANCEL -- or a SMB2_CANCEL after SMB2_CLOSE,
which gen1's guard does not special-case either -- re-fires the
registered cancel_fn over a freed struct file_lock, KASAN slab-UAF in
__locks_delete_block) without even the partial mitigation present
elsewhere.

Could you please queue the three commits for 5.15.y (gen1 first; the
other two apply on top; fs/ksmbd/ path applies to the 5.15 rename).

Thanks,
[ bnomran— scofaild23]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437)
  2026-11-07 23:03 Mohammed omran
@ 2026-11-08 13:52 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-11-08 13:52 UTC (permalink / raw)
  To: Mohammed omran; +Cc: stable, stfrench

On Sun, Nov 08, 2026 at 02:03:47AM +0300, Mohammed omran wrote:
> Hi,
> 
> three ksmbd deferred file-lock UAF fixes landed upstream in June 2026 and
> were backported to 6.1.y, 6.6.y, 6.12.y, 6.18.y and 7.1.y, but did not
> reach 5.15.y (5.15.225):
>   f580d27e8928 ksmbd: fix use-after-free of a deferred file_lock on
> double SMB2_CANCEL
>   d20d1c8ba576 ksmbd: fix UAF of struct file_lock in SMB2_LOCK
> deferred-lock cancellation (CVE-2026-64396)
>   10f293a07f9e ksmbd: fix use-after-free of a deferred file_lock on
> SMB2_CLOSE then SMB2_CANCEL (CVE-2026-64437)
> 
> Evidence:
> - The CNA record for CVE-2026-64396 lists the 5.15 branch as affected
>   (vulnerable since e2f34481b24d, "cifsd: add server-side procedures for
>   SMB3") with no bound fix for it, while every later branch has one.
> - The deferred-lock async machinery is fully present in 5.15.y's copy of
>   the file (fs/ksmbd/smb2pdu.c): setup_async_work, release_async_work,
>   smb2_remove_blocked_lock are all defined/used; note the file moved to
>   fs/smb/server/smb2pdu.c in mainline, which may be why the backport
>   tooling skipped it.
> - linux-5.15.y's history for fs/ksmbd/smb2pdu.c (through 5.15.225,
>   2026-11-06) contains CommitDate back to 2024-11 and shows no deferred
>   lock fixes; the branch is actively maintained (fresh fixes landed on
>   2026-10-30).
> 
> Note: 5.15.y predates all three fixes, so it holds the original form of
> the UAF (a second SMB2_CANCEL -- or a SMB2_CANCEL after SMB2_CLOSE,
> which gen1's guard does not special-case either -- re-fires the
> registered cancel_fn over a freed struct file_lock, KASAN slab-UAF in
> __locks_delete_block) without even the partial mitigation present
> elsewhere.
> 
> Could you please queue the three commits for 5.15.y (gen1 first; the
> other two apply on top; fs/ksmbd/ path applies to the 5.15 rename).

Please provide working backports of these changes that you have tested
and verified they work properly if you wish to have them applied.

Or just wait a few weeks as 5.15.y will be going end-of-life then.  You
really should not be using 5.15.y anymore anyway.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437)
       [not found] <CAGwSD7Tg+b9H8cGnCqg3Y4iXk5tN5fh2joxVqxTbLVs+65y3RA@mail.gmail.com>
@ 2026-11-26 14:01 ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-11-26 14:01 UTC (permalink / raw)
  To: Mohammed omran; +Cc: stable, linkinjeon

On Sun, Nov 08, 2026 at 01:55:13AM +0300, Mohammed omran wrote:
> Hi,
> 
> three ksmbd deferred file-lock UAF fixes landed upstream in June 2026 and
> were backported to 6.1.y, 6.6.y, 6.12.y, 6.18.y and 7.1.y, but did not
> reach 5.15.y (5.15.225):
>   f580d27e8928 ksmbd: fix use-after-free of a deferred file_lock on double
> SMB2_CANCEL
>   d20d1c8ba576 ksmbd: fix UAF of struct file_lock in SMB2_LOCK
> deferred-lock cancellation (CVE-2026-64396)
>   10f293a07f9e ksmbd: fix use-after-free of a deferred file_lock on
> SMB2_CLOSE then SMB2_CANCEL (CVE-2026-64437)
> 
> Evidence:
> - The CNA record for CVE-2026-64396 lists the 5.15 branch as affected
>   (vulnerable since e2f34481b24d, "cifsd: add server-side procedures for
>   SMB3") with no bound fix for it, while every later branch has one.
> - The deferred-lock async machinery is fully present in 5.15.y's copy of
>   the file (fs/ksmbd/smb2pdu.c): setup_async_work, release_async_work,
>   smb2_remove_blocked_lock are all defined/used; note the file moved to
>   fs/smb/server/smb2pdu.c in mainline, which may be why the backport
>   tooling skipped it.
> - linux-5.15.y's history for fs/ksmbd/smb2pdu.c (through 5.15.225,
>   2026-11-06) contains CommitDate back to 2024-11 and shows no deferred
>   lock fixes; the branch is actively maintained (fresh fixes landed on
>   2026-10-30).
> 
> Note: 5.15.y predates all three fixes, so it holds the original form of
> the UAF (a second SMB2_CANCEL -- or a SMB2_CANCEL after SMB2_CLOSE,
> which gen1's guard does not special-case either -- re-fires the
> registered cancel_fn over a freed struct file_lock, KASAN slab-UAF in
> __locks_delete_block) without even the partial mitigation present
> elsewhere.
> 
> Could you please queue the three commits for 5.15.y (gen1 first; the
> other two apply on top; fs/ksmbd/ path applies to the 5.15 rename).
> 
> Thanks,
>  scofaild23

Please provide a set of tested and signed-off-by patches, for everything
you wish to have backported so that we know it actually works properly.

Same for your other requests.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-26 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAGwSD7Tg+b9H8cGnCqg3Y4iXk5tN5fh2joxVqxTbLVs+65y3RA@mail.gmail.com>
2026-11-26 14:01 ` [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437) Greg KH
2026-11-07 23:03 Mohammed omran
2026-11-08 13:52 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox