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 E3FAD319609 for ; Wed, 24 Dec 2025 13:06:48 +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=1766581609; cv=none; b=EXRD7lOEdzqbvNsG1D/O9RIAwUksb6H5VGX99CaFx3lOLsFCn/dB9nnMNbViLJGizYqLWrpoLDUVIW/UvIWewvbO8fnh04iz0Ccl7FVjq25jtTQ8RVz3k2WlAElhv7HSjN6b3HzN3dehFtJGhvELlH38WQy7KubAZqeWFSodWr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581609; c=relaxed/simple; bh=LC/XrjHz7ZyqfXVrko7qYjmu/75T21A9Wq+ZBTpkSHQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VU0eLA1BptQ9mkb/08RplFFGT/00cyevmQZNuFf+d5/C5P4EOEPxsVqrQPG1aU8Am9CIB+xxH5hwQmf9WAiSY6QyHE/LbfRNuXpkLHNkVSL83/KZgiTRM8m4Ml6gl+dYdpFKb+hf/UpI3Y0+PJRXu25LZH65AlGbvhCaRAei7M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zOLqIFR4; 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="zOLqIFR4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6197BC4CEFB; Wed, 24 Dec 2025 13:06:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581608; bh=LC/XrjHz7ZyqfXVrko7qYjmu/75T21A9Wq+ZBTpkSHQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zOLqIFR4LWFeIKHe/gSbkHKoNQe5pfo7Za+VFGpR04Io7/6PIO64q/oKRJOBDubxU Gwd95qlHVNYvVhJGHA9dGEk3ZKmVXS33BYW318kCR0pKg+xsDfOamGyNUnjVSD2m3m kkIdJEoFdoUd2eXEwIXILXoKUWnbJsjgpEq4TTnA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50749: acct: fix potential integer overflow in encode_comp_t() Date: Wed, 24 Dec 2025 14:06:00 +0100 Message-ID: <2025122451-CVE-2022-50749-dae0@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3055; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zxjGpECp+O4GFiF2orFyBou6CD8e9eEi50+/ALXW/+I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT/U1LssITkybouEw6cOJBdutzrQfNUkVFEmrncChr zmzO6C4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyhYdhQfNTN9mlE7w/PU94 5R9p3fzvDMeZowzz0z8eO1xkHuN+5MnnHY4yHtsd2zYvBAA= 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: acct: fix potential integer overflow in encode_comp_t() The integer overflow is descripted with following codes: > 317 static comp_t encode_comp_t(u64 value) > 318 { > 319 int exp, rnd; ...... > 341 exp <<= MANTSIZE; > 342 exp += value; > 343 return exp; > 344 } Currently comp_t is defined as type of '__u16', but the variable 'exp' is type of 'int', so overflow would happen when variable 'exp' in line 343 is greater than 65535. The Linux kernel CVE team has assigned CVE-2022-50749 to this issue. Affected and fixed versions =========================== Fixed in 4.9.337 with commit e93f995a591c352d35d89c518c54f790e1537754 Fixed in 4.14.303 with commit cf60bbca1b83a7e0927e36dbf178328982927886 Fixed in 4.19.270 with commit 1750a0983c455a9b3badd848471fc8d58cb61f67 Fixed in 5.4.229 with commit a815a3e019456c94b03bd183e7ac22fd29e9e6fd Fixed in 5.10.163 with commit 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da Fixed in 5.15.86 with commit ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa Fixed in 6.0.16 with commit 2224897d8187dc22a83e05d9361efcccf67bcf12 Fixed in 6.1.2 with commit 0aac6e60c464a5f942f995428e67f8ae1c422250 Fixed in 6.2 with commit c5f31c655bcc01b6da53b836ac951c1556245305 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-50749 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: kernel/acct.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/e93f995a591c352d35d89c518c54f790e1537754 https://git.kernel.org/stable/c/cf60bbca1b83a7e0927e36dbf178328982927886 https://git.kernel.org/stable/c/1750a0983c455a9b3badd848471fc8d58cb61f67 https://git.kernel.org/stable/c/a815a3e019456c94b03bd183e7ac22fd29e9e6fd https://git.kernel.org/stable/c/6edd0cdee5780fd5f43356b72b29a2a6d48ef6da https://git.kernel.org/stable/c/ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa https://git.kernel.org/stable/c/2224897d8187dc22a83e05d9361efcccf67bcf12 https://git.kernel.org/stable/c/0aac6e60c464a5f942f995428e67f8ae1c422250 https://git.kernel.org/stable/c/c5f31c655bcc01b6da53b836ac951c1556245305