In the Linux kernel, the following vulnerability has been resolved:
fbcon: Make sure modelist not set on unregistered console
It looks like attempting to write to the "store_modes" sysfs node will run afoul of unregistered consoles:
UBSAN: array-index-out-of-bounds in drivers/video/fbdev/core/fbcon.c:122:28 index -1 is out of range for type 'fbinfo *[32]' ... fbconinfofromconsole+0x192/0x1a0 drivers/video/fbdev/core/fbcon.c:122 fbconnewmodelist+0xbf/0x2d0 drivers/video/fbdev/core/fbcon.c:3048 fbnewmodelist+0x328/0x440 drivers/video/fbdev/core/fbmem.c:673 storemodes+0x1c9/0x3e0 drivers/video/fbdev/core/fbsysfs.c:113 devattr_store+0x55/0x80 drivers/base/core.c:2439
static struct fbinfo *fbconregisteredfb[FBMAX]; ... static signed char con2fbmap[MAXNRCONSOLES]; ... static struct fbinfo *fbconinfofromconsole(int console) ... return fbconregisteredfb[con2fbmap[console]];
If con2fbmap contains a -1 things go wrong here. Instead, return NULL, as callers of fbconinfofromconsole() are trying to compare against existing "info" pointers, so error handling should kick in correctly.
[
{
"digest": {
"function_hash": "234414388732445754423852543442943210161",
"length": 112.0
},
"id": "CVE-2025-38198-2072b09b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f28f1f578cd810779d01999c60618cda14c281dd",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fbcon_info_from_console",
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Function"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"337179304872004990359024577279261184121",
"108900353029323237565312213896412734050",
"305272714683419245726150475435149660054",
"172389949820900454368471183522650290148",
"69292366577897299061222316271716872176",
"216852479950579900136800227842959888728"
]
},
"id": "CVE-2025-38198-517be23f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3237d451bf3a4490cb1a76f3b7c91d9888f1c4b",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Line"
},
{
"digest": {
"function_hash": "234414388732445754423852543442943210161",
"length": 112.0
},
"id": "CVE-2025-38198-5a49de54",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@519ba75728ee8cd561dce25fc52a2ec5c47171dc",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fbcon_info_from_console",
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Function"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"337179304872004990359024577279261184121",
"108900353029323237565312213896412734050",
"305272714683419245726150475435149660054",
"172389949820900454368471183522650290148",
"69292366577897299061222316271716872176",
"216852479950579900136800227842959888728"
]
},
"id": "CVE-2025-38198-65d02ef9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@519ba75728ee8cd561dce25fc52a2ec5c47171dc",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Line"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"337179304872004990359024577279261184121",
"108900353029323237565312213896412734050",
"305272714683419245726150475435149660054",
"172389949820900454368471183522650290148",
"69292366577897299061222316271716872176",
"216852479950579900136800227842959888728"
]
},
"id": "CVE-2025-38198-6dc32792",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f28f1f578cd810779d01999c60618cda14c281dd",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Line"
},
{
"digest": {
"function_hash": "234414388732445754423852543442943210161",
"length": 112.0
},
"id": "CVE-2025-38198-757e6eaf",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b3237d451bf3a4490cb1a76f3b7c91d9888f1c4b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fbcon_info_from_console",
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Function"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"337179304872004990359024577279261184121",
"108900353029323237565312213896412734050",
"305272714683419245726150475435149660054",
"172389949820900454368471183522650290148",
"69292366577897299061222316271716872176",
"216852479950579900136800227842959888728"
]
},
"id": "CVE-2025-38198-8b0ed1ab",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cedc1b63394a866bf8663a3e40f4546f1d28c8d8",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Line"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"337179304872004990359024577279261184121",
"108900353029323237565312213896412734050",
"305272714683419245726150475435149660054",
"172389949820900454368471183522650290148",
"69292366577897299061222316271716872176",
"216852479950579900136800227842959888728"
]
},
"id": "CVE-2025-38198-b163c757",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54b28f7c567dd659e5f9562f518e4d7f3f6a367b",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Line"
},
{
"digest": {
"function_hash": "234414388732445754423852543442943210161",
"length": 112.0
},
"id": "CVE-2025-38198-ed7b7335",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cedc1b63394a866bf8663a3e40f4546f1d28c8d8",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fbcon_info_from_console",
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Function"
},
{
"digest": {
"function_hash": "234414388732445754423852543442943210161",
"length": 112.0
},
"id": "CVE-2025-38198-f6fcdc0c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@54b28f7c567dd659e5f9562f518e4d7f3f6a367b",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fbcon_info_from_console",
"file": "drivers/video/fbdev/core/fbcon.c"
},
"signature_type": "Function"
}
]