Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3375919F42C for ; Thu, 1 May 2025 14:15:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108943; cv=none; b=ExFmRFbis5mGO4DD5RfBHoyc7AqTAQ/oVNvBdDiTxahevoAJ5CpUe8J707bp8VudwjNUDuouSlxYQjuifyuhSNbt/GrU6OB+Mokpjgdi8MS6Ng11uSbpM71azEPI4/MaKhedpDgAvAUmroNYi1adBGK0XGF9n0v2Vez5QFRx5BU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108943; c=relaxed/simple; bh=MVZDrMNXRl9dSBiBonD9kWbsSYe2cL656WzP92yrWZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ma7jbk37wizQj6KufeoXfoIZzk4PHH36gZ2Vf4JGZpc7RjMn3gy1rgMfuuquAyQVVdDsuVqt/tjmwAX08DE5i3kJ4/4+8C79+sgKvwJoF5+Tr5ZFaLyrmcTgbaZF4F2xUWHzwOLyn2rUBjQNNuWgllXMIw0c86TrQaCfQhScQeU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YsK9nDGD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YsK9nDGD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C08AC4CEEE; Thu, 1 May 2025 14:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108941; bh=MVZDrMNXRl9dSBiBonD9kWbsSYe2cL656WzP92yrWZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YsK9nDGDDRIjFZpmTiVCxlXJRbSALa9ndzI003tttZxQIyqHRQrGiJVqhGrGbcf6x kWmqTu5SnGONTGy1qBdG6gVSMxcG0jAv/kis4/RXNITNDGSaUrNV1JUFy0irsKgGHI meCCtwSoTnVjkJuhN+isvQYC3WPmxU/Sg/Hb9vYw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49859: net: lapbether: fix issue of invalid opcode in lapbeth_open() Date: Thu, 1 May 2025 16:10:49 +0200 Message-ID: <2025050146-CVE-2022-49859-4700@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3045; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=74fHbXBsCdPL6ET/0H+DafJqw72zNsQ1Hj3W0kZxkNs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDauXcU4/sE7DxngVT/xsIU3pO4vyb941ub5zudwvr 3a7sDbDjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIXzjD/HDf7r6Nx8UvL/H4 wbBq2Wft0i49FYYFq1fbb/l0WOL94pmeIiXuKww+f66vAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: lapbether: fix issue of invalid opcode in lapbeth_open() If lapb_register() failed when lapb device goes to up for the first time, the NAPI is not disabled. As a result, the invalid opcode issue is reported when the lapb device goes to up for the second time. The stack info is as follows: [ 1958.311422][T11356] kernel BUG at net/core/dev.c:6442! [ 1958.312206][T11356] invalid opcode: 0000 [#1] PREEMPT SMP KASAN [ 1958.315979][T11356] RIP: 0010:napi_enable+0x16a/0x1f0 [ 1958.332310][T11356] Call Trace: [ 1958.332817][T11356] [ 1958.336135][T11356] lapbeth_open+0x18/0x90 [ 1958.337446][T11356] __dev_open+0x258/0x490 [ 1958.341672][T11356] __dev_change_flags+0x4d4/0x6a0 [ 1958.345325][T11356] dev_change_flags+0x93/0x160 [ 1958.346027][T11356] devinet_ioctl+0x1276/0x1bf0 [ 1958.346738][T11356] inet_ioctl+0x1c8/0x2d0 [ 1958.349638][T11356] sock_ioctl+0x5d1/0x750 [ 1958.356059][T11356] __x64_sys_ioctl+0x3ec/0x1790 [ 1958.365594][T11356] do_syscall_64+0x35/0x80 [ 1958.366239][T11356] entry_SYSCALL_64_after_hwframe+0x46/0xb0 [ 1958.377381][T11356] The Linux kernel CVE team has assigned CVE-2022-49859 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 514e1150da9cd8d7978d990a353636cf1a7a87c2 and fixed in 5.15.79 with commit 4689bd3a1b23a1bd917899e63b81bca2ccdfab45 Issue introduced in 5.13 with commit 514e1150da9cd8d7978d990a353636cf1a7a87c2 and fixed in 6.0.9 with commit ed4940050a7ce7fc2ccd51db580ef1ade64290b1 Issue introduced in 5.13 with commit 514e1150da9cd8d7978d990a353636cf1a7a87c2 and fixed in 6.1 with commit 3faf7e14ec0c3462c2d747fa6793b8645d1391df 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-2022-49859 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: drivers/net/wan/lapbether.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/4689bd3a1b23a1bd917899e63b81bca2ccdfab45 https://git.kernel.org/stable/c/ed4940050a7ce7fc2ccd51db580ef1ade64290b1 https://git.kernel.org/stable/c/3faf7e14ec0c3462c2d747fa6793b8645d1391df