<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/smb/server/mgmt, branch linux-6.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-04-23T01:45:43Z</updated>
<entry>
<title>ksmbd: fix use-after-free in ksmbd_session_rpc_open</title>
<updated>2025-04-23T01:45:43Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2025-04-17T01:10:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1f46c99d9ea411f9bf30025b912d881d36fc709'/>
<id>urn:sha1:a1f46c99d9ea411f9bf30025b912d881d36fc709</id>
<content type='text'>
A UAF issue can occur due to a race condition between
ksmbd_session_rpc_open() and __session_rpc_close().
Add rpc_lock to the session to protect it.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Tested-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix null pointer dereference in alloc_preauth_hash()</title>
<updated>2025-04-02T04:02:20Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2025-04-02T00:11:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780'/>
<id>urn:sha1:c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780</id>
<content type='text'>
The Client send malformed smb2 negotiate request. ksmbd return error
response. Subsequently, the client can send smb2 session setup even
thought conn-&gt;preauth_info is not allocated.
This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore
session setup request if smb2 negotiate phase is not complete.

Cc: stable@vger.kernel.org
Tested-by: Steve French &lt;stfrench@microsoft.com&gt;
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-26505
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix session use-after-free in multichannel connection</title>
<updated>2025-04-01T05:04:21Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2025-03-27T12:22:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db'/>
<id>urn:sha1:fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db</id>
<content type='text'>
There is a race condition between session setup and
ksmbd_sessions_deregister. The session can be freed before the connection
is added to channel list of session.
This patch check reference count of session before freeing it.

Cc: stable@vger.kernel.org
Reported-by: Sean Heelan &lt;seanheelan@gmail.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix multichannel connection failure</title>
<updated>2025-03-28T00:12:00Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2025-03-24T11:19:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9'/>
<id>urn:sha1:c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9</id>
<content type='text'>
ksmbd check that the session of second channel is in the session list of
first connection. If it is in session list, multichannel connection
should not be allowed.

Fixes: b95629435b84 ("ksmbd: fix racy issue from session lookup and expire")
Reported-by: Sean Heelan &lt;seanheelan@gmail.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix use-after-free in ksmbd_sessions_deregister()</title>
<updated>2025-03-28T00:12:00Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2025-03-22T00:20:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15a9605f8d69dc85005b1a00c31a050b8625e1aa'/>
<id>urn:sha1:15a9605f8d69dc85005b1a00c31a050b8625e1aa</id>
<content type='text'>
In multichannel mode, UAF issue can occur in session_deregister
when the second channel sets up a session through the connection of
the first channel. session that is freed through the global session
table can be accessed again through -&gt;sessions of connection.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Tested-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix racy issue from session lookup and expire</title>
<updated>2024-12-10T23:48:06Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-12-05T12:38:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b95629435b84b9ecc0c765995204a4d8a913ed52'/>
<id>urn:sha1:b95629435b84b9ecc0c765995204a4d8a913ed52</id>
<content type='text'>
Increment the session reference count within the lock for lookup to avoid
racy issue with session expire.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-25737
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: use __GFP_RETRY_MAYFAIL</title>
<updated>2024-11-26T00:58:02Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-11-22T07:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0066f623bce8f98b69b752ee03d46a5047c281b8'/>
<id>urn:sha1:0066f623bce8f98b69b752ee03d46a5047c281b8</id>
<content type='text'>
Prefer to report ENOMEM rather than incur the oom for allocations in
ksmbd. __GFP_NORETRY could not achieve that, It would fail the allocations
just too easily. __GFP_RETRY_MAYFAIL will keep retrying the allocation
until there is no more progress and fail the allocation instead go OOM
and let the caller to deal with it.

Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create</title>
<updated>2024-11-05T00:26:35Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-11-02T09:46:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0a77715db22611df50b178374c51e2ba0d58866e'/>
<id>urn:sha1:0a77715db22611df50b178374c51e2ba0d58866e</id>
<content type='text'>
There is a race condition between ksmbd_smb2_session_create and
ksmbd_expire_session. This patch add missing sessions_table_lock
while adding/deleting session from global session table.

Cc: stable@vger.kernel.org # v5.15+
Reported-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Tested-by: Norbert Szetei &lt;norbert@doyensec.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: Fix the missing xa_store error check</title>
<updated>2024-10-27T23:30:05Z</updated>
<author>
<name>Jinjie Ruan</name>
</author>
<published>2024-10-27T23:28:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3abab905b14f4ba756d413f37f1fb02b708eee93'/>
<id>urn:sha1:3abab905b14f4ba756d413f37f1fb02b708eee93</id>
<content type='text'>
xa_store() can fail, it return xa_err(-EINVAL) if the entry cannot
be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed,
so check error for xa_store() to fix it.

Cc: stable@vger.kernel.org
Fixes: b685757c7b08 ("ksmbd: Implements sess-&gt;rpc_handle_list as xarray")
Signed-off-by: Jinjie Ruan &lt;ruanjinjie@huawei.com&gt;
Acked-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>ksmbd: add support for supplementary groups</title>
<updated>2024-10-11T16:02:14Z</updated>
<author>
<name>Namjae Jeon</name>
</author>
<published>2024-10-09T01:39:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a77e0e02af1c2db5fc040511aa78a58a52e116ab'/>
<id>urn:sha1:a77e0e02af1c2db5fc040511aa78a58a52e116ab</id>
<content type='text'>
Even though system user has a supplementary group, It gets
NT_STATUS_ACCESS_DENIED when attempting to create file or directory.
This patch add KSMBD_EVENT_LOGIN_REQUEST_EXT/RESPONSE_EXT netlink events
to get supplementary groups list. The new netlink event doesn't break
backward compatibility when using old ksmbd-tools.

Co-developed-by: Atte Heikkilä &lt;atteh.mailbox@gmail.com&gt;
Signed-off-by: Atte Heikkilä &lt;atteh.mailbox@gmail.com&gt;
Signed-off-by: Namjae Jeon &lt;linkinjeon@kernel.org&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
</feed>
