serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud

Summary

CVECVE-2026-143000
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:17:25 UTC
Updated2026-12-03 10:17:25 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud byt_set_termios() derives the clock of the UART from the baud rate in the termios, which nobody has looked at yet: fuart = baud * 16; ... fuart *= rounddown_pow_of_two(fref / fuart); ... p->uartclk = fuart; fref is 100 MHz. For a baud rate above 6250000, which BOTHER allows, fref / fuart is 0, and rounddown_pow_of_two(0) shifts 1UL by -1. On x86 that is 1UL << 63, the product with a multiple of 16 is 0, and so is uartclk. serial8250_get_baud_rate() then passes 0 for both limits, uart_get_baud_rate() finds no rate which fits, WARNs and returns 0, and uart_get_divisor() or dw8250_get_divisor() divide by 16 * 0. Everybody who may open the tty can oops the kernel with one TCSETS2. Don't ask for more than fref. The limits are those of a 100 MHz clock then, and uart_get_baud_rate() falls back to the old rate as for any other rate that the port cannot do. 8250_mid, which has the same formula, treats this case separately.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d 7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654 git Not specified
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d f183a0fb89ef5b84dfb14cb415d34b9d0960e710 git Not specified
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d 7bcd1981107f084f6341ec38c5132329b8f12459 git Not specified
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d 3d6680bf46834eae8d943961192034bd562a18dc git Not specified
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d 7d7102b81406cf84a180699a07287eb093dce703 git Not specified
CNA Linux Linux affected 21947ba654a685ab48f2d4089c5c2d27443c2d0d 08daebfd63e9054e097eb2653eff9381de43a422 git Not specified
CNA Linux Linux affected 4.1 Not specified
CNA Linux Linux unaffected 4.1 semver Not specified
CNA Linux Linux unaffected 5.10.276 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.227 5.15.* semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc4 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/3d6680bf46834eae8d943961192034bd562a18dc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/08daebfd63e9054e097eb2653eff9381de43a422 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7fce0b3f8a7d7afc8c16fcaaf2d66f652fc3b654 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f183a0fb89ef5b84dfb14cb415d34b9d0960e710 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7bcd1981107f084f6341ec38c5132329b8f12459 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7d7102b81406cf84a180699a07287eb093dce703 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report