Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Mohammed omran <sanhokh30@gmail.com>
Cc: stable@vger.kernel.org, stfrench@microsoft.com
Subject: Re: [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437)
Date: Sun, 8 Nov 2026 08:52:16 -0500	[thread overview]
Message-ID: <2026110826-scarily-pettiness-3c17@gregkh> (raw)
In-Reply-To: <CAGwSD7TLViPzzXuZ37=M=8RJZrCN_ODG=DA=pLiivG6Lys94jA@mail.gmail.com>

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

  reply	other threads:[~2026-11-08 13:52 UTC|newest]

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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026110826-scarily-pettiness-3c17@gregkh \
    --to=greg@kroah.com \
    --cc=sanhokh30@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=stfrench@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox