{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-97480","id":"CVE-2026-97480","title":"tty: serial: 8250: protect against NULL uart->port.dev in register","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: serial: 8250: protect against NULL uart->port.dev in register\n\nserial8250_register_8250_port() conditionally copies uart->port.dev\nfrom up->port.dev only when up->port.dev is non-NULL:\n\n\tif (up->port.dev) {\n\t\tuart->port.dev = up->port.dev;\n\t\t...\n\t}\n\nSo if both the existing uart slot and up have a NULL ->dev,\nuart->port.dev r","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: serial: 8250: protect against NULL uart->port.dev in register\n\nserial8250_register_8250_port() conditionally copies uart->port.dev\nfrom up->port.dev only when up->port.dev is non-NULL:\n\n\tif (up->port.dev) {\n\t\tuart->port.dev = up->port.dev;\n\t\t...\n\t}\n\nSo if both the existing uart slot and up have a NULL ->dev,\nuart->port.dev remains NULL. The very next ACPI companion check\nthen dereferences it unconditionally:\n\n\tif (!has_acpi_companion(uart->port.dev)) {\n\nhas_acpi_companion() reads dev->fwnode without a NULL guard\n(include/linux/acpi.h), so this NULL-derefs the kernel for the\nremaining no-dev case rather than just skipping the\nmctrl_gpio_init() initialisation as intended.\n\nsmatch flags the inconsistency:\n\n  drivers/tty/serial/8250/8250_core.c:767\n  serial8250_register_8250_port() error: 'uart->port.dev' could be\n  null (see line 719)\n\nGuard the call with a NULL check so register continues to work\nfor callers that legitimately have no parent device (legacy\nnon-OF/non-ACPI registrations).\n\nNo functional change for callers that pass a non-NULL ->dev.","published":"2026-09-24T16:04:22.893Z","updated":"2026-11-01T02:31:06.132985517Z","reserved":"2026-09-24T16:01:01.149Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4a96895f74c9633b51427fd080ab70fa62b65bc4","lessThan":"f728f7f38a6eca16923c72fc6826445810d2b41f","status":"affected","versionType":"git"},{"version":"4a96895f74c9633b51427fd080ab70fa62b65bc4","lessThan":"68059b6e9f7292714286e2b0f5185ed2a43fccc5","status":"affected","versionType":"git"},{"version":"4a96895f74c9633b51427fd080ab70fa62b65bc4","lessThan":"9c78f89cf2fbae18b14c78bf172ca15d832aff15","status":"affected","versionType":"git"},{"version":"4a96895f74c9633b51427fd080ab70fa62b65bc4","lessThan":"5cbab666721d974bfe033a12045d808936deaefd","status":"affected","versionType":"git"},{"version":"4a96895f74c9633b51427fd080ab70fa62b65bc4","lessThan":"941c9f84c9b6310f7aaa1c8c785dcc634ee33050","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.53","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f728f7f38a6eca16923c72fc6826445810d2b41f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/68059b6e9f7292714286e2b0f5185ed2a43fccc5","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9c78f89cf2fbae18b14c78bf172ca15d832aff15","tags":["web"]},{"url":"https://git.kernel.org/stable/c/5cbab666721d974bfe033a12045d808936deaefd","tags":["web"]},{"url":"https://git.kernel.org/stable/c/941c9f84c9b6310f7aaa1c8c785dcc634ee33050","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97480.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97480","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00174,"epssPercentile":0.07016,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97480","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97480","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-97480","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97480","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}