CVE-2022-50102
video: fbdev: arkfb: Fix a divide-by-zero bug in ark_set_pixclock()
Check your servers for CVE-2022-50102
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-2022-50102 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:
video: fbdev: arkfb: Fix a divide-by-zero bug in ark_set_pixclock()
Since the user can control the arguments of the ioctl() from the user space, under special arguments that may result in a divide-by-zero bug in: drivers/video/fbdev/arkfb.c:784: ark_set_pixclock(info, (hdiv * info->var.pixclock) / hmul); with hdiv=1, pixclock=1 and hmul=2 you end up with (1*1)/2 = (int) 0. and then in: drivers/video/fbdev/arkfb.c:504: rv = dac_set_freq(par->dac, 0, 1000000000 / pixclock); we'll get a division-by-zero.
The following log can reveal it:
divide error: 0000 [#1] PREEMPT SMP KASAN PTI RIP: 0010:ark_set_pixclock drivers/video/fbdev/arkfb.c:504 [inline] RIP: 0010:arkfb_set_par+0x10fc/0x24c0 drivers/video/fbdev/arkfb.c:784 Call Trace: fb_set_var+0x604/0xeb0 drivers/video/fbdev/core/fbmem.c:1034 do_fb_ioctl+0x234/0x670 drivers/video/fbdev/core/fbmem.c:1110 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1189
Fix this by checking the argument of ark_set_pixclock() first.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 76b3f0a0b56e53a960a14624a0f48b3d94b5e7e7 affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before b9a66f23612b84617e04412169e155a4b92f632d affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before a249e1b89ca25e1c34bdf96154e3f6224a91a9af affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 0288fa799e273b08839037499d704dc7bdc13e9a affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 236c1502520b7b08955467ec2e50b3232e34f1f9 affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 9ebc5031958c1f3a2795e4533b4091d77c738d14 affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 15661642511b2b192077684a89f42a8d95d54286 affected from 681e14730c73cc2c71af282c001de6bc71c22f00, before 2f1c4523f7a3aaabe7e53d3ebd378292947e95c8
Other versions: unaffected
|
| Linux |
affected 2.6.22 unaffected before 2.6.22 unaffected from 4.14.291 up to and including 4.14.* unaffected from 4.19.256 up to and including 4.19.* unaffected from 5.4.211 up to and including 5.4.* unaffected from 5.10.137 up to and including 5.10.* unaffected from 5.15.61 up to and including 5.15.* unaffected from 5.18.18 up to and including 5.18.* unaffected from 5.19.2 up to and including 5.19.* unaffected 6.0 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-2022-50102 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50102
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-2022-50102
trivy image --scanners vuln IMAGE | grep CVE-2022-50102
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/76b3f0a0b56e53a960a14624a0f48b3d94b5e7e7 git.kernel.org
- https://git.kernel.org/stable/c/b9a66f23612b84617e04412169e155a4b92f632d git.kernel.org
- https://git.kernel.org/stable/c/a249e1b89ca25e1c34bdf96154e3f6224a91a9af git.kernel.org
- https://git.kernel.org/stable/c/0288fa799e273b08839037499d704dc7bdc13e9a git.kernel.org
- https://git.kernel.org/stable/c/236c1502520b7b08955467ec2e50b3232e34f1f9 git.kernel.org
- https://git.kernel.org/stable/c/9ebc5031958c1f3a2795e4533b4091d77c738d14 git.kernel.org
- https://git.kernel.org/stable/c/15661642511b2b192077684a89f42a8d95d54286 git.kernel.org
- https://git.kernel.org/stable/c/2f1c4523f7a3aaabe7e53d3ebd378292947e95c8 git.kernel.org
Source: the record CVE-2022-50102 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