CVE-2025-39967
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2025-39967",
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"published": "2025-10-15T08:15:34.210",
"lastModified": "2026-10-19T21:10:00.160",
"vulnStatus": "Modified",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfbcon: fix integer overflow in fbcon_do_set_font\n\nFix integer overflow vulnerabilities in fbcon_do_set_font() where font\nsize calculations could overflow when handling user-controlled font\nparameters.\n\nThe vulnerabilities occur when:\n1. CALC_FONTSZ(h, pitch, charcount) performs h * pith * charcount\n multiplication with user-controlled values that can overflow.\n2. FONT_EXTRA_WORDS * sizeof(int) + size addition can also overflow\n3. This results in smaller allocations than expected, leading to buffer\n overflows during font data copying.\n\nAdd explicit overflow checking using check_mul_overflow() and\ncheck_add_overflow() kernel helpers to safety validate all size\ncalculations before allocation."
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nfbcon: corrige desbordamiento de entero en fbcon_do_set_font\n\nCorrige vulnerabilidades de desbordamiento de entero en fbcon_do_set_font() donde los cálculos del tamaño de la fuente podrían desbordarse al manejar parámetros de fuente controlados por el usuario.\n\nLas vulnerabilidades ocurren cuando:\n1. CALC_FONTSZ(h, pitch, charcount) realiza la multiplicación h * pith * charcount con valores controlados por el usuario que pueden desbordarse.\n2. La adición FONT_EXTRA_WORDS * sizeof(int) + size también puede desbordarse.\n3. Esto resulta en asignaciones más pequeñas de lo esperado, lo que lleva a desbordamientos de búfer durante la copia de datos de la fuente.\n\nAgrega verificación explícita de desbordamiento utilizando las funciones auxiliares del kernel check_mul_overflow() y check_add_overflow() para validar de forma segura todos los cálculos de tamaño antes de la asignación."
}
],
"affected": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"affectedData": [
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "unaffected",
"programFiles": [
"drivers/video/fbdev/core/fbcon.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "96e41fc29e8af5c5085fb8a79cab8d0d00bab86c",
"lessThan": "994bdc2d23c79087fbf7dcd9544454e8ebcef877",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "9c8ec14075c5317edd6b242f1be8167aa1e4e333",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "b8a6e85328aeb9881531dbe89bcd2637a06c3c95",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "a6eb9f423b3db000aaedf83367b8539f6b72dcfc",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "adac90bb1aaf45ca66f9db8ac100be16750ace78",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "4a4bac869560f943edbe3c2b032062f6673b13d3",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "c0c01f9aa08c8e10e10e8c9ebb5be01a4eff6eb7",
"versionType": "git",
"status": "affected"
},
{
"version": "39b3cffb8cf3111738ea993e2757ab382253d86a",
"lessThan": "1a194e6c8e1ee745e914b0b7f50fa86c89ed13fe",
"versionType": "git",
"status": "affected"
},
{
"version": "ae021a904ac82d9fc81c25329d3c465c5a7d5686",
"versionType": "git",
"status": "affected"
},
{
"version": "451bffa366f2cc0e5314807cb847f31c0226efed",
"versionType": "git",
"status": "affected"
},
{
"version": "2c455e9c5865861f5ce09c5f596909495ed7657c",
"versionType": "git",
"status": "affected"
},
{
"version": "72f099805dbc907fbe8fa19bccdc31d3e2ee6e9e",
"versionType": "git",
"status": "affected"
},
{
"version": "34cf1aff169dc6dedad8d79da7bf1b4de2773dbc",
"versionType": "git",
"status": "affected"
},
{
"version": "5.4.62",
"lessThan": "5.4.300",
"versionType": "semver",
"status": "affected"
},
{
"version": "4.4.235",
"lessThan": "4.5",
"versionType": "semver",
"status": "affected"
},
{
"version": "4.9.235",
"lessThan": "4.10",
"versionType": "semver",
"status": "affected"
},
{
"version": "4.14.196",
"lessThan": "4.15",
"versionType": "semver",
"status": "affected"
},
{
"version": "4.19.143",
"lessThan": "4.20",
"versionType": "semver",
"status": "affected"
},
{
"version": "5.8.6",
"lessThan": "5.9",
"versionType": "semver",
"status": "affected"
}
]
},
{
"vendor": "Linux",
"product": "Linux",
"defaultStatus": "affected",
"programFiles": [
"drivers/video/fbdev/core/fbcon.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"versions": [
{
"version": "5.9",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.9",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "5.4.300",
"lessThanOrEqual": "5.4.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "5.10.245",
"lessThanOrEqual": "5.10.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "5.15.194",
"lessThanOrEqual": "5.15.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.1.155",
"lessThanOrEqual": "6.1.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.6.109",
"lessThanOrEqual": "6.6.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.12.50",
"lessThanOrEqual": "6.12.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.16.10",
"lessThanOrEqual": "6.16.*",
"versionType": "semver",
"status": "unaffected"
},
{
"version": "6.17",
"lessThanOrEqual": "*",
"versionType": "original_commit_for_fix",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"attackVector": "LOCAL",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-06-10T20:42:14.769458Z",
"id": "CVE-2025-39967",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-190"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.4.235",
"versionEndExcluding": "4.5",
"matchCriteriaId": "0568BD06-B895-4C33-AE96-F6EA22C7AF67"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9.235",
"versionEndExcluding": "4.10",
"matchCriteriaId": "C5731018-BC4A-4EEC-BFBF-32326F4503AC"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.14.196",
"versionEndExcluding": "4.15",
"matchCriteriaId": "6F6C149F-DB67-4E39-BD45-60423EB9A32B"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.19.143",
"versionEndExcluding": "4.20",
"matchCriteriaId": "8D61C332-812B-4401-91E4-FD9D81035869"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.4.62",
"versionEndExcluding": "5.4.300",
"matchCriteriaId": "5314A270-4CEE-40C7-AA4C-6D63177748EE"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.8.6",
"versionEndExcluding": "5.9",
"matchCriteriaId": "D1A2FB6C-A45E-4E1B-8FE3-D0CDD7BE36C3"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.9.1",
"versionEndExcluding": "5.10.245",
"matchCriteriaId": "079A3366-91A4-4FB6-93DE-AC6F191C2564"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.11",
"versionEndExcluding": "5.15.194",
"matchCriteriaId": "CF862263-DC8D-4324-A52A-DA1D7880B35A"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.16",
"versionEndExcluding": "6.1.155",
"matchCriteriaId": "5F31BA8D-2902-46DD-98AF-62DC2E0B2965"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.2",
"versionEndExcluding": "6.6.109",
"matchCriteriaId": "027853C1-2263-44B9-99B5-D9FCA8FB92EB"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.7",
"versionEndExcluding": "6.12.50",
"matchCriteriaId": "03EA453B-67BD-46D8-9AB0-39D8325C5B4D"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.13",
"versionEndExcluding": "6.16.10",
"matchCriteriaId": "8AE7824F-9555-4B3E-B0F8-C9E279E8B81A"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:*",
"matchCriteriaId": "F79A2EB6-623E-4749-AEE0-DCB58C4C42F8"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:*",
"matchCriteriaId": "A52A4ABE-5C24-4CD4-A348-E303B7F23C71"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:*",
"matchCriteriaId": "12019CF2-FD8E-4D59-BA4C-7093DF0BB091"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:*",
"matchCriteriaId": "9B1AB90E-C0C6-4027-B27D-BA214BE33561"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:*",
"matchCriteriaId": "103FE5BA-7315-4263-9C95-EABEAD7E174F"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:*",
"matchCriteriaId": "47E31D6A-31EC-4F63-9CAE-B7A52B58E149"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:*",
"matchCriteriaId": "3497462B-A3DA-47CC-A5DD-C1C2D2E6DFDE"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
"matchCriteriaId": "327D22EF-390B-454C-BD31-2ED23C998A1C"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
"matchCriteriaId": "C730CD9A-D969-4A8E-9522-162AAF7C0EE9"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*",
"matchCriteriaId": "39982C4B-716E-4B2F-8196-FA301F47807D"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*",
"matchCriteriaId": "340BEEA9-D70D-4290-B502-FBB1032353B1"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*",
"matchCriteriaId": "47E4C5C0-079F-4838-971B-8C503D48FCC2"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*",
"matchCriteriaId": "5A4516A6-C12E-42A4-8C0E-68AEF3264504"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:6.17:rc7:*:*:*:*:*:*",
"matchCriteriaId": "3963C3A0-CEA1-4F5C-8011-3A593ABB684D"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/1a194e6c8e1ee745e914b0b7f50fa86c89ed13fe",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/4a4bac869560f943edbe3c2b032062f6673b13d3",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/994bdc2d23c79087fbf7dcd9544454e8ebcef877",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/9c8ec14075c5317edd6b242f1be8167aa1e4e333",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/a6eb9f423b3db000aaedf83367b8539f6b72dcfc",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/adac90bb1aaf45ca66f9db8ac100be16750ace78",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/b8a6e85328aeb9881531dbe89bcd2637a06c3c95",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
},
{
"url": "https://git.kernel.org/stable/c/c0c01f9aa08c8e10e10e8c9ebb5be01a4eff6eb7",
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
]
}
]
}