CVE-2023-53654
octeontx2-af: Add validation before accessing cgx and lmac
Check your servers for CVE-2023-53654
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53654 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: Add validation before accessing cgx and lmac
with the addition of new MAC blocks like CN10K RPM and CN10KB RPM_USX, LMACs are noncontiguous and CGX blocks are also noncontiguous. But during RVU driver initialization, the driver is assuming they are contiguous and trying to access cgx or lmac with their id which is resulting in kernel panic.
This patch fixes the issue by adding proper checks.
[ 23.219150] pc : cgx_lmac_read+0x38/0x70 [ 23.219154] lr : rvu_program_channels+0x3f0/0x498 [ 23.223852] sp : ffff000100d6fc80 [ 23.227158] x29: ffff000100d6fc80 x28: ffff00010009f880 x27: 000000000000005a [ 23.234288] x26: ffff000102586768 x25: 0000000000002500 x24: fffffffffff0f000
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.29% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 91c6945ea1f9059fea886630d0fd8070740e2aaf, before e425e2ba933618ee5ec8e4f3eb341efeb6c9ddef affected from 91c6945ea1f9059fea886630d0fd8070740e2aaf, before a5485a943193e55c79150382e6461e8ea759e96e affected from 91c6945ea1f9059fea886630d0fd8070740e2aaf, before b04872e15f3df62cb2fd530950f769626e1ef489 affected from 91c6945ea1f9059fea886630d0fd8070740e2aaf, before 79ebb53772c95d3a6ae51b3c65f9985fdd430df6
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.15.121 up to and including 5.15.* unaffected from 6.1.39 up to and including 6.1.* unaffected from 6.4.4 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53654 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53654
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-53654
trivy image --scanners vuln IMAGE | grep CVE-2023-53654
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e425e2ba933618ee5ec8e4f3eb341efeb6c9ddef git.kernel.org
- https://git.kernel.org/stable/c/a5485a943193e55c79150382e6461e8ea759e96e git.kernel.org
- https://git.kernel.org/stable/c/b04872e15f3df62cb2fd530950f769626e1ef489 git.kernel.org
- https://git.kernel.org/stable/c/79ebb53772c95d3a6ae51b3c65f9985fdd430df6 git.kernel.org
Source: the record CVE-2023-53654 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse