Linux Kernel up to 5.19.6 fbdev fbmem.c do_fb_ioctl divide by zero

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.0$0-$5k0.00

Summaryinfo

A vulnerability has been found in Linux Kernel up to 5.19.6 and classified as critical. This impacts the function do_fb_ioctl of the file fbmem.c of the component fbdev. The manipulation leads to divide by zero. This vulnerability is traded as CVE-2022-49978. There is no exploit available. The affected component should be upgraded.

Detailsinfo

A vulnerability, which was classified as critical, has been found in Linux Kernel up to 5.19.6. This issue affects the function do_fb_ioctl of the file fbmem.c of the component fbdev. The manipulation with an unknown input leads to a divide by zero vulnerability. Using CWE to declare the problem leads to CWE-369. The product divides a value by zero. Impacted is availability. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: fbdev: fb_pm2fb: Avoid potential divide by zero error In `do_fb_ioctl()` of fbmem.c, if cmd is FBIOPUT_VSCREENINFO, var will be copied from user, then go through `fb_set_var()` and `info->fbops->fb_check_var()` which could may be `pm2fb_check_var()`. Along the path, `var->pixclock` won't be modified. This function checks whether reciprocal of `var->pixclock` is too high. If `var->pixclock` is zero, there will be a divide by zero error. So, it is necessary to check whether denominator is zero to avoid crash. As this bug is found by Syzkaller, logs are listed below. divide error in pm2fb_check_var Call Trace: <TASK> fb_set_var+0x367/0xeb0 drivers/video/fbdev/core/fbmem.c:1015 do_fb_ioctl+0x234/0x670 drivers/video/fbdev/core/fbmem.c:1110 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1189

It is possible to read the advisory at git.kernel.org. The identification of this vulnerability is CVE-2022-49978 since 06/18/2025. The exploitation is known to be difficult. Technical details of the vulnerability are known, but there is no available exploit.

Upgrading to version 4.9.327, 4.14.292, 4.19.257, 5.4.212, 5.10.141, 5.15.65 or 5.19.7 eliminates this vulnerability. Applying the patch 0f1174f4972ea9fad6becf8881d71adca8e9ca91/3ec326a6a0d4667585ca595f438c7293e5ced7c4/7f88cdfea8d7f4dbaf423d808241403b2bb945e4/7d9591b32a9092fc6391a316b56e8016c6181c3d/8fc778ee2fb2853f7a3531fa7273349640d8e4e9/34c3dea1189525cd533071ed5c176fc4ea8d982b/cb4bb011a683532841344ca7f281b5e04389b4f8/19f953e7435644b81332dd632ba1b2d80b1e37af is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at CERT Bund (WID-SEC-2025-1350). Be aware that VulDB is the high quality source for vulnerability data.

Affected

  • Debian Linux
  • Amazon Linux 2
  • Red Hat Enterprise Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • SUSE openSUSE
  • Open Source Linux Kernel
  • RESF Rocky Linux
  • Dell Avamar
  • Dell NetWorker
  • Dell Secure Connect Gateway
  • IBM QRadar SIEM

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.1
VulDB Meta Temp Score: 5.0

VulDB Base Score: 4.8
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 5.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Divide by zero
CWE: CWE-369 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Partially

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: Kernel 4.9.327/4.14.292/4.19.257/5.4.212/5.10.141/5.15.65/5.19.7
Patch: 0f1174f4972ea9fad6becf8881d71adca8e9ca91/3ec326a6a0d4667585ca595f438c7293e5ced7c4/7f88cdfea8d7f4dbaf423d808241403b2bb945e4/7d9591b32a9092fc6391a316b56e8016c6181c3d/8fc778ee2fb2853f7a3531fa7273349640d8e4e9/34c3dea1189525cd533071ed5c176fc4ea8d982b/cb4bb011a683532841344ca7f281b5e04389b4f8/19f953e7435644b81332dd632ba1b2d80b1e37af

Timelineinfo

06/18/2025 🔍
06/18/2025 +0 days 🔍
06/18/2025 +0 days 🔍
11/30/2025 +165 days 🔍

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2022-49978 (🔍)
GCVE (CVE): GCVE-0-2022-49978
GCVE (VulDB): GCVE-100-312959
CERT Bund: WID-SEC-2025-1350 - Linux Kernel: Mehrere Schwachstellen erm&ouml;glichen Denial of Service

Entryinfo

Created: 06/18/2025 14:44
Updated: 11/30/2025 16:43
Changes: 06/18/2025 14:44 (60), 07/17/2025 22:56 (7), 07/29/2025 05:36 (1), 09/08/2025 04:29 (1), 10/18/2025 21:59 (1), 11/15/2025 05:33 (13), 11/30/2025 16:43 (1)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!