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 98BB01E9098 for ; Mon, 21 Oct 2024 12:04:13 +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=1729512253; cv=none; b=lloCyoqUI2GPus698eyLtyPBwT7V+mfKBmRd1K83KLv3XEDzBp6C/Le8hAijklltDJU65bTTPhgexgu31tWJCuF+syJMj6zuFFjpP3l5VmqWtkbPOQcVpsgtWmr6mvPziXyBL8UgVsOlAv+9SLzsvWYfIgv6JOlF/cFmluBahME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512253; c=relaxed/simple; bh=ygkT7vAJ0XTxVf5TiDG6iFRcuAFTGN6fVmznUssTC5k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ILgnfS0IUG8NWBJjl5GAv6OJ9WaDuBkvhv9pwn+Sm3OtycCHSx87yZOJJ+d+K6DSR4ak6xPMiGNnXulsBpr/vvUNNvEZgqlUls+kiNFMpUWbqh4bsiuFmw+TT7efV+YZZWHpW6L2vAy+4QFHHuM1FWmQ6EbRkfjlXn8bJCPYEwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QSXFeJpn; 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="QSXFeJpn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C818FC4CEC3; Mon, 21 Oct 2024 12:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512253; bh=ygkT7vAJ0XTxVf5TiDG6iFRcuAFTGN6fVmznUssTC5k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QSXFeJpnIDah354aRNs8l9ko+/MT6+LbtKbkiZgNRz6+zEqaVGhpr1mc433zChflG TgnpyoPVmBuctWPe2tVuFzJdPZcW31tAgVT8y40xbN4kpKm3ObYsjc3BqmvEfPnI2D h3O3hcodJLsSoy8KNpj/z6Rr8LAd/L9rUqiHLdOo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47710: sock_map: Add a cond_resched() in sock_hash_free() Date: Mon, 21 Oct 2024 14:00:38 +0200 Message-ID: <2024102118-CVE-2024-47710-3882@gregkh> X-Mailer: git-send-email 2.47.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=2777; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ygkT7vAJ0XTxVf5TiDG6iFRcuAFTGN6fVmznUssTC5k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTkG+cSsMTk59OjXGoPhwdIHDpi+PzP1uul9/eueuK 4dfzPyzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRa6IMc8X3CXiqG5087yf2 +nW5/ZMnc6XskxgWbM+PdHj5pdlqvezpaczBCued5PNnAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: sock_map: Add a cond_resched() in sock_hash_free() Several syzbot soft lockup reports all have in common sock_hash_free() If a map with a large number of buckets is destroyed, we need to yield the cpu when needed. The Linux kernel CVE team has assigned CVE-2024-47710 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 5.10.227 with commit 1a11a1a53255 Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 5.15.168 with commit 984648aac87a Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 6.1.113 with commit 04f62c012e0e Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 6.6.54 with commit 80bd490ac0a3 Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 6.10.13 with commit ae8c1b3e7353 Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 6.11.2 with commit cd10abf41bae Issue introduced in 5.8 with commit 75e68e5bf2c7 and fixed in 6.12-rc1 with commit b1339be951ad Issue introduced in 5.4.49 with commit 5bed77b0a2a0 Issue introduced in 5.7.6 with commit 6fc372656a1e 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-47710 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/core/sock_map.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/1a11a1a53255ddab8a903cdae01b9d3eb2c1a47b https://git.kernel.org/stable/c/984648aac87a6a1c8fd61663bec3f7b61eafad5e https://git.kernel.org/stable/c/04f62c012e0e4683e572b30baf6004ca0a3f6772 https://git.kernel.org/stable/c/80bd490ac0a3b662a489e17d8eedeb1e905a3d40 https://git.kernel.org/stable/c/ae8c1b3e7353ad240b829eabac7ba2584b2c6bdc https://git.kernel.org/stable/c/cd10abf41bae55c9d2b93f34a516dbf52626bcb7 https://git.kernel.org/stable/c/b1339be951ad31947ae19bc25cb08769bf255100