All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change
@ 2024-05-17 11:52 Greg Kroah-Hartman
  2024-05-22 12:28 ` Siddh Raman Pant
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2024-05-17 11:52 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

wifi: nl80211: reject iftype change with mesh ID change

It's currently possible to change the mesh ID when the
interface isn't yet in mesh mode, at the same time as
changing it into mesh mode. This leads to an overwrite
of data in the wdev->u union for the interface type it
currently has, causing cfg80211_change_iface() to do
wrong things when switching.

We could probably allow setting an interface to mesh
while setting the mesh ID at the same time by doing a
different order of operations here, but realistically
there's no userspace that's going to do this, so just
disallow changes in iftype when setting mesh ID.

The Linux kernel CVE team has assigned CVE-2024-27410 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 4.19.309 with commit d38d31bbbb9d
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.4.271 with commit 0cfbb26ee5e7
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.10.212 with commit 99eb2159680a
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.15.151 with commit 063715c33b4c
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.1.81 with commit 930e826962d9
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.6.21 with commit 177d574be4b5
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.7.9 with commit a2add961a5ed
	Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.8 with commit f78c1375339a

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-27410
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:
	net/wireless/nl80211.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/d38d31bbbb9dc0d4d71a45431eafba03d0bc150d
	https://git.kernel.org/stable/c/0cfbb26ee5e7b3d6483a73883f9f6157bca22ec9
	https://git.kernel.org/stable/c/99eb2159680af8786104dac80528acd5acd45980
	https://git.kernel.org/stable/c/063715c33b4c37587aeca2c83cf08ead0c542995
	https://git.kernel.org/stable/c/930e826962d9f01dcd2220176134427358d112f2
	https://git.kernel.org/stable/c/177d574be4b58f832354ab1ef5a297aa0c9aa2df
	https://git.kernel.org/stable/c/a2add961a5ed25cfd6a74f9ffb9e7ab6d6ded838
	https://git.kernel.org/stable/c/f78c1375339a291cba492a70eaf12ec501d28a8e

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change
  2024-05-17 11:52 CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change Greg Kroah-Hartman
@ 2024-05-22 12:28 ` Siddh Raman Pant
  2024-05-22 12:34   ` gregkh
  0 siblings, 1 reply; 3+ messages in thread
From: Siddh Raman Pant @ 2024-05-22 12:28 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org
  Cc: cve@kernel.org, linux-cve-announce@vger.kernel.org,
	linux-kernel@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]

On Fri, 17 May 2024 13:52:02 +0200, Greg Kroah-Hartman wrote:
> In the Linux kernel, the following vulnerability has been resolved:
> 
> wifi: nl80211: reject iftype change with mesh ID change
> 
> It's currently possible to change the mesh ID when the
> interface isn't yet in mesh mode, at the same time as
> changing it into mesh mode. This leads to an overwrite
> of data in the wdev->u union for the interface type it
> currently has, causing cfg80211_change_iface() to do
> wrong things when switching.
> 
> [...]
> 
> The Linux kernel CVE team has assigned CVE-2024-27410 to this issue.

This does not apply to versions below 6.0, as the union was not backported.
The fix commit mentioned is incorrect, it should be 7b0a0e3c3a88.

Thanks,
Siddh

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change
  2024-05-22 12:28 ` Siddh Raman Pant
@ 2024-05-22 12:34   ` gregkh
  0 siblings, 0 replies; 3+ messages in thread
From: gregkh @ 2024-05-22 12:34 UTC (permalink / raw)
  To: Siddh Raman Pant
  Cc: cve@kernel.org, linux-cve-announce@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, May 22, 2024 at 12:28:59PM +0000, Siddh Raman Pant wrote:
> On Fri, 17 May 2024 13:52:02 +0200, Greg Kroah-Hartman wrote:
> > In the Linux kernel, the following vulnerability has been resolved:
> > 
> > wifi: nl80211: reject iftype change with mesh ID change
> > 
> > It's currently possible to change the mesh ID when the
> > interface isn't yet in mesh mode, at the same time as
> > changing it into mesh mode. This leads to an overwrite
> > of data in the wdev->u union for the interface type it
> > currently has, causing cfg80211_change_iface() to do
> > wrong things when switching.
> > 
> > [...]
> > 
> > The Linux kernel CVE team has assigned CVE-2024-27410 to this issue.
> 
> This does not apply to versions below 6.0, as the union was not backported.
> The fix commit mentioned is incorrect, it should be 7b0a0e3c3a88.

Changelogs should be written a bit more careful then :)

Note, that commit was backported to 5.19.2, so 6.0 is not correct...

I'll go update the cve and push out a json update to cve.org with this
information, thanks for letting us know!

Also, this commit was backported to the older kernels, so this is going
to look strange, here's the new text:

+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 4.19.309 with commit d38d31bbbb9d
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 5.4.271 with commit 0cfbb26ee5e7
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 5.10.212 with commit 99eb2159680a
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 5.15.151 with commit 063715c33b4c
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 6.1.81 with commit 930e826962d9
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 6.6.21 with commit 177d574be4b5
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 6.7.9 with commit a2add961a5ed
+       Issue introduced in 6.0 with commit 7b0a0e3c3a88 and fixed in 6.8 with commit f78c1375339a

Hopefully people's json parsers can handle that well :)

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-22 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-17 11:52 CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change Greg Kroah-Hartman
2024-05-22 12:28 ` Siddh Raman Pant
2024-05-22 12:34   ` gregkh

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.