CVE-2025-39967

fbcon: fix integer overflow in fbcon_do_set_font

7.8 high EPSS 0.18%

Published 15 Oct 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2025-39967

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-2025-39967 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.

Check my servers

Description

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

fbcon: fix integer overflow in fbcon_do_set_font

Fix integer overflow vulnerabilities in fbcon_do_set_font() where font size calculations could overflow when handling user-controlled font parameters.

The vulnerabilities occur when: 1. CALC_FONTSZ(h, pitch, charcount) performs h * pith * charcount multiplication with user-controlled values that can overflow. 2. FONT_EXTRA_WORDS * sizeof(int) + size addition can also overflow 3. This results in smaller allocations than expected, leading to buffer overflows during font data copying.

Add explicit overflow checking using check_mul_overflow() and check_add_overflow() kernel helpers to safety validate all size calculations before allocation.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.23% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 96e41fc29e8af5c5085fb8a79cab8d0d00bab86c, before 994bdc2d23c79087fbf7dcd9544454e8ebcef877
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before 9c8ec14075c5317edd6b242f1be8167aa1e4e333
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before b8a6e85328aeb9881531dbe89bcd2637a06c3c95
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before a6eb9f423b3db000aaedf83367b8539f6b72dcfc
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before adac90bb1aaf45ca66f9db8ac100be16750ace78
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before 4a4bac869560f943edbe3c2b032062f6673b13d3
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before c0c01f9aa08c8e10e10e8c9ebb5be01a4eff6eb7
affected from 39b3cffb8cf3111738ea993e2757ab382253d86a, before 1a194e6c8e1ee745e914b0b7f50fa86c89ed13fe
affected ae021a904ac82d9fc81c25329d3c465c5a7d5686
affected 451bffa366f2cc0e5314807cb847f31c0226efed
affected 2c455e9c5865861f5ce09c5f596909495ed7657c
affected 72f099805dbc907fbe8fa19bccdc31d3e2ee6e9e
affected 34cf1aff169dc6dedad8d79da7bf1b4de2773dbc
affected from 5.4.62, before 5.4.300
affected from 4.4.235, before 4.5
affected from 4.9.235, before 4.10
affected from 4.14.196, before 4.15
affected from 4.19.143, before 4.20
affected from 5.8.6, before 5.9
Other versions: unaffected
Linux
affected 5.9
unaffected before 5.9
unaffected from 5.4.300 up to and including 5.4.*
unaffected from 5.10.245 up to and including 5.10.*
unaffected from 5.15.194 up to and including 5.15.*
unaffected from 6.1.155 up to and including 6.1.*
unaffected from 6.6.109 up to and including 6.6.*
unaffected from 6.12.50 up to and including 6.12.*
unaffected from 6.16.10 up to and including 6.16.*
unaffected 6.17 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-2025-39967 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39967

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-2025-39967
trivy image --scanners vuln IMAGE | grep CVE-2025-39967

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

Source: the record CVE-2025-39967 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.