All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Mohammed omran <sanhokh30@gmail.com>
Cc: stable@vger.kernel.org, linkinjeon@kernel.org
Subject: Re: [PATCH request for v5.15.y] ksmbd deferred file_lock UAF fixes missing (CVE-2026-64396, CVE-2026-64437)
Date: Thu, 26 Nov 2026 15:01:21 +0100	[thread overview]
Message-ID: <2026112653-glowing-freezable-6955@gregkh> (raw)
In-Reply-To: <CAGwSD7Tg+b9H8cGnCqg3Y4iXk5tN5fh2joxVqxTbLVs+65y3RA@mail.gmail.com>

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

       reply	other threads:[~2026-11-26 14:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGwSD7Tg+b9H8cGnCqg3Y4iXk5tN5fh2joxVqxTbLVs+65y3RA@mail.gmail.com>
2026-11-26 14:01 ` Greg KH [this message]
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

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=2026112653-glowing-freezable-6955@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linkinjeon@kernel.org \
    --cc=sanhokh30@gmail.com \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.