blob: 74fac1b3288f920bbe9c80392f7ec9c39762725c [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-26592: ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
The race is between the handling of a new TCP connection and
its disconnection. It leads to UAF on `struct tcp_transport` in
ksmbd_tcp_new_connection() function.
The Linux kernel CVE team has assigned CVE-2024-26592 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit a848c4f15ab6d5d405dbee7de5da71839b2bf35e and fixed in 5.15.149 with commit 999daf367b924fdf14e9d83e034ee0f86bc17ec6
Issue introduced in 5.15 with commit a848c4f15ab6d5d405dbee7de5da71839b2bf35e and fixed in 6.1.75 with commit 380965e48e9c32ee4263c023e1d830ea7e462ed1
Issue introduced in 5.15 with commit a848c4f15ab6d5d405dbee7de5da71839b2bf35e and fixed in 6.6.14 with commit 24290ba94cd0136e417283b0dbf8fcdabcf62111
Issue introduced in 5.15 with commit a848c4f15ab6d5d405dbee7de5da71839b2bf35e and fixed in 6.7.2 with commit 69d54650b751532d1e1613a4fb433e591aeef126
Issue introduced in 5.15 with commit a848c4f15ab6d5d405dbee7de5da71839b2bf35e and fixed in 6.8 with commit 38d20c62903d669693a1869aa68c4dd5674e2544
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-26592
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/server/connection.c
fs/smb/server/connection.h
fs/smb/server/transport_rdma.c
fs/smb/server/transport_tcp.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/999daf367b924fdf14e9d83e034ee0f86bc17ec6
https://git.kernel.org/stable/c/380965e48e9c32ee4263c023e1d830ea7e462ed1
https://git.kernel.org/stable/c/24290ba94cd0136e417283b0dbf8fcdabcf62111
https://git.kernel.org/stable/c/69d54650b751532d1e1613a4fb433e591aeef126
https://git.kernel.org/stable/c/38d20c62903d669693a1869aa68c4dd5674e2544