linux-cve-announce.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CVE-2024-26849: netlink: add nla be16/32 types to minlen array
@ 2024-04-17 10:14 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2024-04-17 10:14 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

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

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

netlink: add nla be16/32 types to minlen array

BUG: KMSAN: uninit-value in nla_validate_range_unsigned lib/nlattr.c:222 [inline]
BUG: KMSAN: uninit-value in nla_validate_int_range lib/nlattr.c:336 [inline]
BUG: KMSAN: uninit-value in validate_nla lib/nlattr.c:575 [inline]
BUG: KMSAN: uninit-value in __nla_validate_parse+0x2e20/0x45c0 lib/nlattr.c:631
 nla_validate_range_unsigned lib/nlattr.c:222 [inline]
 nla_validate_int_range lib/nlattr.c:336 [inline]
 validate_nla lib/nlattr.c:575 [inline]
...

The message in question matches this policy:

 [NFTA_TARGET_REV]       = NLA_POLICY_MAX(NLA_BE32, 255),

but because NLA_BE32 size in minlen array is 0, the validation
code will read past the malformed (too small) attribute.

Note: Other attributes, e.g. BITFIELD32, SINT, UINT.. are also missing:
those likely should be added too.

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


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

	Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.1.81 with commit 0ac219c4c3ab
	Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.6.21 with commit a2ab02815184
	Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.7.9 with commit 7a9d14c63b35
	Issue introduced in 6.1 with commit ecaf75ffd5f5 and fixed in 6.8 with commit 9a0d18853c28

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-26849
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:
	lib/nlattr.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/0ac219c4c3ab253f3981f346903458d20bacab32
	https://git.kernel.org/stable/c/a2ab028151841cd833cb53eb99427e0cc990112d
	https://git.kernel.org/stable/c/7a9d14c63b35f89563c5ecbadf918ad64979712d
	https://git.kernel.org/stable/c/9a0d18853c280f6a0ee99f91619f2442a17a323a

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-17 10:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 10:14 CVE-2024-26849: netlink: add nla be16/32 types to minlen array Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).