{"id":65876,"date":"2025-07-09T16:32:40","date_gmt":"2025-07-09T13:02:40","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38262-linux-uartlite-concurrency-race-null-pointer-dereference\/"},"modified":"2025-07-09T16:32:40","modified_gmt":"2025-07-09T13:02:40","slug":"cve-2025-38262-linux-uartlite-concurrency-race-null-pointer-dereference","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38262-linux-uartlite-concurrency-race-null-pointer-dereference\/","title":{"rendered":"CVE-2025-38262 &#8211; Linux UARTlite Concurrency Race Null Pointer Dereference"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38262<br \/>\n<br \/>\n<strong>Published : <\/strong> July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>tty: serial: uartlite: register uart driver in init<\/p>\n<p>When two instances of uart devices are probing, a concurrency race can<br \/>\noccur. If one thread calls uart_register_driver function, which first<br \/>\nallocates and assigns memory to &#8216;uart_state&#8217; member of uart_driver<br \/>\nstructure, the other instance can bypass uart driver registration and<br \/>\ncall ulite_assign. This calls uart_add_one_port, which expects the uart<br \/>\ndriver to be fully initialized. This leads to a kernel panic due to a<br \/>\nnull pointer dereference:<\/p>\n[    8.143581] BUG: kernel NULL pointer dereference, address: 00000000000002b8<br \/>\n[    8.156982] #PF: supervisor write access in kernel mode<br \/>\n[    8.156984] #PF: error_code(0x0002) &#8211; not-present page<br \/>\n[    8.156986] PGD 0 P4D 0<br \/>\n&#8230;<br \/>\n[    8.180668] RIP: 0010:mutex_lock+0x19\/0x30<br \/>\n[    8.188624] Call Trace:<br \/>\n[    8.188629]  ? __die_body.cold+0x1a\/0x1f<br \/>\n[    8.195260]  ? page_fault_oops+0x15c\/0x290<br \/>\n[    8.209183]  ? __irq_resolve_mapping+0x47\/0x80<br \/>\n[    8.209187]  ? exc_page_fault+0x64\/0x140<br \/>\n[    8.209190]  ? asm_exc_page_fault+0x22\/0x30<br \/>\n[    8.209196]  ? mutex_lock+0x19\/0x30<br \/>\n[    8.223116]  uart_add_one_port+0x60\/0x440<br \/>\n[    8.223122]  ? proc_tty_register_driver+0x43\/0x50<br \/>\n[    8.223126]  ? tty_register_driver+0x1ca\/0x1e0<br \/>\n[    8.246250]  ulite_probe+0x357\/0x4b0 [uartlite]\n<p>To prevent it, move uart driver registration in to init function. This<br \/>\nwill ensure that uart_driver is always registered when probe function<br \/>\nis called.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-38262 Published : July 9, 2025, 11:15 a.m. | 49\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: tty: serial: uartlite: register uart driver in init When two instances of uart devices are probing, a concurrency race can occur. If one thread calls uart_register_driver function, which first &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-65876","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=65876"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/65876\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=65876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=65876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=65876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}