{"id":"CVE-2026-143000","state":"PUBLISHED","title":"serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_lpss: don't divide by 0 above 6.25 Mbaud\n\nbyt_set_termios() derives the clock of the UART from the baud rate in\nthe termios, which nobody has looked at yet:\n\n\tfuart = baud * 16;\n\t...\n\tfuart *= rounddown_pow_of_two(fref / fuart);\n\t...\n\tp->uartclk = fuart;\n\nfref is 100 MHz. For a baud rate above 6250000, which BOTHER allows,\nfref / fuart is 0, and rounddown_pow_of_two(0) shifts 1UL by -1. On x86\nthat is 1UL << 63, the product with a multiple of 16 is 0, and so is\nuartclk. serial8250_get_baud_rate() then passes 0 for both limits,\nuart_get_baud_rate() finds no rate which fits, WARNs and returns 0, and\nuart_get_divisor() or dw8250_get_divisor() divide by 16 * 0.\n\nEverybody who may open the tty can oops the kernel with one TCSETS2.\n\nDon't ask for more than fref. The limits are those of a 100 MHz clock\nthen, and uart_get_baud_rate() falls back to the old rate as for any\nother rate that the port cannot do. 8250_mid, which has the same\nformula, treats this case separately.","publishedAt":"2026-12-03T09:17:32.952Z","updatedAt":"2026-12-03T09:17:32.952Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"f183a0fb89ef5b84dfb14cb415d34b9d0960e710","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7bcd1981107f084f6341ec38c5132329b8f12459","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"3d6680bf46834eae8d943961192034bd562a18dc","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7d7102b81406cf84a180699a07287eb093dce703","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"08daebfd63e9054e097eb2653eff9381de43a422","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/8250/8250_lpss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/8250/8250_lpss.c"]}],"references":["https://git.kernel.org/stable/c/7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654","https://git.kernel.org/stable/c/f183a0fb89ef5b84dfb14cb415d34b9d0960e710","https://git.kernel.org/stable/c/7bcd1981107f084f6341ec38c5132329b8f12459","https://git.kernel.org/stable/c/3d6680bf46834eae8d943961192034bd562a18dc","https://git.kernel.org/stable/c/7d7102b81406cf84a180699a07287eb093dce703","https://git.kernel.org/stable/c/08daebfd63e9054e097eb2653eff9381de43a422"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143000.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143000","state":"PUBLISHED","datePublished":"2026-12-03T09:17:32.952Z","dateUpdated":"2026-12-03T09:17:32.952Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.342Z"},"containers":{"cna":{"title":"serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_lpss: don't divide by 0 above 6.25 Mbaud\n\nbyt_set_termios() derives the clock of the UART from the baud rate in\nthe termios, which nobody has looked at yet:\n\n\tfuart = baud * 16;\n\t...\n\tfuart *= rounddown_pow_of_two(fref / fuart);\n\t...\n\tp->uartclk = fuart;\n\nfref is 100 MHz. For a baud rate above 6250000, which BOTHER allows,\nfref / fuart is 0, and rounddown_pow_of_two(0) shifts 1UL by -1. On x86\nthat is 1UL << 63, the product with a multiple of 16 is 0, and so is\nuartclk. serial8250_get_baud_rate() then passes 0 for both limits,\nuart_get_baud_rate() finds no rate which fits, WARNs and returns 0, and\nuart_get_divisor() or dw8250_get_divisor() divide by 16 * 0.\n\nEverybody who may open the tty can oops the kernel with one TCSETS2.\n\nDon't ask for more than fref. The limits are those of a 100 MHz clock\nthen, and uart_get_baud_rate() falls back to the old rate as for any\nother rate that the port cannot do. 8250_mid, which has the same\nformula, treats this case separately."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"f183a0fb89ef5b84dfb14cb415d34b9d0960e710","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7bcd1981107f084f6341ec38c5132329b8f12459","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"3d6680bf46834eae8d943961192034bd562a18dc","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"7d7102b81406cf84a180699a07287eb093dce703","versionType":"git"},{"version":"21947ba654a685ab48f2d4089c5c2d27443c2d0d","status":"affected","lessThan":"08daebfd63e9054e097eb2653eff9381de43a422","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/8250/8250_lpss.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/8250/8250_lpss.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654"},{"url":"https://git.kernel.org/stable/c/f183a0fb89ef5b84dfb14cb415d34b9d0960e710"},{"url":"https://git.kernel.org/stable/c/7bcd1981107f084f6341ec38c5132329b8f12459"},{"url":"https://git.kernel.org/stable/c/3d6680bf46834eae8d943961192034bd562a18dc"},{"url":"https://git.kernel.org/stable/c/7d7102b81406cf84a180699a07287eb093dce703"},{"url":"https://git.kernel.org/stable/c/08daebfd63e9054e097eb2653eff9381de43a422"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:17:32.952Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.4-rc4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}