[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024110556-CVE-2024-50120-07e2@gregkh>
Date: Tue, 5 Nov 2024 18:11:09 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-50120: smb: client: Handle kstrdup failures for passwords
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: Handle kstrdup failures for passwords
In smb3_reconfigure(), after duplicating ctx->password and
ctx->password2 with kstrdup(), we need to check for allocation
failures.
If ses->password allocation fails, return -ENOMEM.
If ses->password2 allocation fails, free ses->password, set it
to NULL, and return -ENOMEM.
The Linux kernel CVE team has assigned CVE-2024-50120 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6.24 with commit 7e8cffa4f85e and fixed in 6.6.59 with commit 35dbac8c328d
Issue introduced in 6.9 with commit c1eb537bf456 and fixed in 6.11.6 with commit 35488799b0ab
Issue introduced in 6.9 with commit c1eb537bf456 and fixed in 6.12-rc5 with commit 9a5dd6115139
Issue introduced in 6.7.12 with commit e78308a6dcab
Issue introduced in 6.8.3 with commit 2a0fc63f1f4f
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-50120
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/client/fs_context.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/35dbac8c328d6afe937cd45ecd41d209d0b9f8b8
https://git.kernel.org/stable/c/35488799b0ab6e4327f82e1d9209a60805665b37
https://git.kernel.org/stable/c/9a5dd61151399ad5a5d69aad28ab164734c1e3bc
Powered by blists - more mailing lists