lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091902-CVE-2025-39839-2786@gregkh>
Date: Fri, 19 Sep 2025 17:28:03 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-39839: batman-adv: fix OOB read/write in network-coding decode

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

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

batman-adv: fix OOB read/write in network-coding decode

batadv_nc_skb_decode_packet() trusts coded_len and checks only against
skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing
payload headroom, and the source skb length is not verified, allowing an
out-of-bounds read and a small out-of-bounds write.

Validate that coded_len fits within the payload area of both destination
and source sk_buffs before XORing.

The Linux kernel CVE team has assigned CVE-2025-39839 to this issue.


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

	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 5.4.299 with commit 30fc47248f02b8a14a61df469e1da4704be1a19f
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 5.10.243 with commit 1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 5.15.192 with commit 5d334bce9fad58cf328d8fa14ea1fff855819863
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 6.1.151 with commit dce6c2aa70e94c04c523b375dfcc664d7a0a560a
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 6.6.105 with commit bb37252c9af1cb250f34735ee98f80b46be3cef1
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 6.12.46 with commit 20080709457bc1e920eb002483d7d981d9b2ac1c
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 6.16.6 with commit a67c6397fcb7e842d3c595243049940970541c48
	Issue introduced in 3.10 with commit 2df5278b0267c799f3e877e8eeddbb6e93cda0bb and fixed in 6.17-rc5 with commit d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087

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-2025-39839
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/batman-adv/network-coding.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/30fc47248f02b8a14a61df469e1da4704be1a19f
	https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183
	https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863
	https://git.kernel.org/stable/c/dce6c2aa70e94c04c523b375dfcc664d7a0a560a
	https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1
	https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1c
	https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48
	https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ