mbox series

[SRU,Jammy,0/1] CVE-2023-32247

Message ID 20240206174917.14714-1-bethany.jamison@canonical.com
Headers show
Series CVE-2023-32247 | expand

Message

Bethany Jamison Feb. 6, 2024, 5:49 p.m. UTC
[Impact]

A flaw was found in the Linux kernel's ksmbd, a high-performance in-kernel
SMB server. The specific flaw exists within the handling of
SMB2_SESSION_SETUP commands. The issue results from the lack of control of
resource consumption. An attacker can leverage this vulnerability to create
a denial-of-service condition on the system.

[Fix]

Jammy: Backported - Jammy code structure was different in smb2pdu.h than
upstream, I found the relevant code chunk and implemented the fix commit's
intended change.

[Test Case]

Compile and boot test.

[Regression Potential]

Issues could occur when requesting to setup a new session.

Namjae Jeon (1):
  ksmbd: destroy expired sessions

 fs/ksmbd/mgmt/user_session.c | 68 ++++++++++++++++++++----------------
 fs/ksmbd/mgmt/user_session.h |  1 +
 fs/ksmbd/smb2pdu.c           |  1 +
 fs/ksmbd/smb2pdu.h           |  2 ++
 4 files changed, 41 insertions(+), 31 deletions(-)

Comments

Cengiz Can Feb. 7, 2024, 8:12 p.m. UTC | #1
On Tue, 2024-02-06 at 11:49 -0600, Bethany Jamison wrote:
> [Impact]
> 
> A flaw was found in the Linux kernel's ksmbd, a high-performance in-
> kernel
> SMB server. The specific flaw exists within the handling of
> SMB2_SESSION_SETUP commands. The issue results from the lack of
> control of
> resource consumption. An attacker can leverage this vulnerability to
> create
> a denial-of-service condition on the system.
> 
> [Fix]
> 
> Jammy: Backported - Jammy code structure was different in smb2pdu.h
> than
> upstream, I found the relevant code chunk and implemented the fix
> commit's
> intended change.
> 
> [Test Case]
> 
> Compile and boot test.
> 
> [Regression Potential]
> 
> Issues could occur when requesting to setup a new session.
> 
> Namjae Jeon (1):
>   ksmbd: destroy expired sessions

Acked-by: Cengiz Can <cengiz.can@canonical.com>

> 
>  fs/ksmbd/mgmt/user_session.c | 68 ++++++++++++++++++++--------------
> --
>  fs/ksmbd/mgmt/user_session.h |  1 +
>  fs/ksmbd/smb2pdu.c           |  1 +
>  fs/ksmbd/smb2pdu.h           |  2 ++
>  4 files changed, 41 insertions(+), 31 deletions(-)
> 
> -- 
> 2.34.1
> 
>
Jacob Martin Feb. 8, 2024, 12:07 a.m. UTC | #2
Acked-by: Jacob Martin <jacob.martin@canonical.com>

On 2/6/24 11:49 AM, Bethany Jamison wrote:
> [Impact]
> 
> A flaw was found in the Linux kernel's ksmbd, a high-performance in-kernel
> SMB server. The specific flaw exists within the handling of
> SMB2_SESSION_SETUP commands. The issue results from the lack of control of
> resource consumption. An attacker can leverage this vulnerability to create
> a denial-of-service condition on the system.
> 
> [Fix]
> 
> Jammy: Backported - Jammy code structure was different in smb2pdu.h than
> upstream, I found the relevant code chunk and implemented the fix commit's
> intended change.
> 
> [Test Case]
> 
> Compile and boot test.
> 
> [Regression Potential]
> 
> Issues could occur when requesting to setup a new session.
> 
> Namjae Jeon (1):
>    ksmbd: destroy expired sessions
> 
>   fs/ksmbd/mgmt/user_session.c | 68 ++++++++++++++++++++----------------
>   fs/ksmbd/mgmt/user_session.h |  1 +
>   fs/ksmbd/smb2pdu.c           |  1 +
>   fs/ksmbd/smb2pdu.h           |  2 ++
>   4 files changed, 41 insertions(+), 31 deletions(-)
>
Roxana Nicolescu Feb. 12, 2024, 8:06 a.m. UTC | #3
On 06/02/2024 18:49, Bethany Jamison wrote:
> [Impact]
>
> A flaw was found in the Linux kernel's ksmbd, a high-performance in-kernel
> SMB server. The specific flaw exists within the handling of
> SMB2_SESSION_SETUP commands. The issue results from the lack of control of
> resource consumption. An attacker can leverage this vulnerability to create
> a denial-of-service condition on the system.
>
> [Fix]
>
> Jammy: Backported - Jammy code structure was different in smb2pdu.h than
> upstream, I found the relevant code chunk and implemented the fix commit's
> intended change.
>
> [Test Case]
>
> Compile and boot test.
>
> [Regression Potential]
>
> Issues could occur when requesting to setup a new session.
>
> Namjae Jeon (1):
>    ksmbd: destroy expired sessions
>
>   fs/ksmbd/mgmt/user_session.c | 68 ++++++++++++++++++++----------------
>   fs/ksmbd/mgmt/user_session.h |  1 +
>   fs/ksmbd/smb2pdu.c           |  1 +
>   fs/ksmbd/smb2pdu.h           |  2 ++
>   4 files changed, 41 insertions(+), 31 deletions(-)
>
Applied to jammy master-next branch. Thanks!