CVE-2022-49419: video: fbdev: vesafb: Fix a use-after-free due early fb_info cleanup

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

video: fbdev: vesafb: Fix a use-after-free due early fbinfo cleanup

Commit b3c9a924aab6 ("fbdev: vesafb: Cleanup fbinfo in .fbdestroy rather than .remove") fixed a use-after-free error due the vesafb driver freeing the fbinfo in the .remove handler instead of doing it in .fbdestroy.

This can happen if the .fbdestroy callback is executed after the .remove callback, since the former tries to access a pointer freed by the latter.

But that change didn't take into account that another possible scenario is that .fbdestroy is called before the .remove callback. For example, if no process has the fbdev chardev opened by the time the driver is removed.

If that's the case, fbinfo will be freed when unregisterframebuffer() is called, making the fbinfo pointer accessed in vesafbremove() after that to no longer be valid.

To prevent that, move the expression containing the info->par to happen before the unregisterframebuffer() function call.

Affected Software

11 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.15.41<5.15.46
Linux Linux kernel>=5.17.9<5.17.14
Linux Linux kernel>=5.18<5.18.3
linux/kernel>=5.15.41<5.15.46
5.15.46
linux/kernel>=5.17.9<5.17.14
5.17.14
linux/kernel>=5.18.0<5.18.3
5.18.3
debian/linux<5.18.5-1
5.18.5-1
debian/linux<5.18.5-1
5.18.5-1
debian/linux<5.18.5-1
5.18.5-1
debian/linux
5.18.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.46
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.17.14
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.18.3
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.5-1

Event History

Feb 26, 2025
CVE Published
via MITRE·02:12 AM
Data Sourced
via MITRE·02:12 AM
Description
Data Sourced
via OSV·02:12 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:01 AM
Description
Feb 27, 2025
Data Sourced
via NVD·07:15 PM
SeverityWeakness
Mar 24, 2025
Data Sourced
via NVD·07:57 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49419?

CVE-2022-49419 has not been assigned a specific severity score, but it is classified as a use-after-free vulnerability which can lead to potential system exploitation.

2

How do I fix CVE-2022-49419?

To fix CVE-2022-49419, update your Linux Kernel to a version that incorporates the patch addressing this vulnerability.

3

Which versions of the Linux Kernel are affected by CVE-2022-49419?

CVE-2022-49419 affects Linux Kernel versions between 5.15.41 to 5.15.46, 5.17.9 to 5.17.14, and 5.18.0 to 5.18.3.

4

What component is associated with CVE-2022-49419?

CVE-2022-49419 is associated with the Linux framebuffer device (fbdev) specifically related to the vesafb driver.

5

What is the potential impact of CVE-2022-49419?

The potential impact of CVE-2022-49419 includes system crashes or exploiting the vulnerability to execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203