{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142967","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.340Z","datePublished":"2026-12-03T09:16:56.867Z","dateUpdated":"2026-12-04T03:26:45.831Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:26:45.831Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: serial: io_edgeport: fix potential close() use-after-free\n\nAdd the missing open check on write() and locking when updating the port\nstatus during close() to prevent a racing interrupt completion handler\nfrom trying to submit more data for the port while its write URB and\nFIFO are being deallocated.\n\nThis issue was flagged by Sashiko when reviewing a related fix."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The use-after-free is edge_write() touching txfifo.fifo after edge_close() kfree()s it and usb_free_urb()s write_urb. Those run together when tty_write() reaches serial_write()->edge_write() while tty_release() is in serial_close()->tty_port_close()->serial_port_shutdown()->edge_close(), and the bytes copied are the write() payload.\nAC:L - The attacker open()s a bound ttyUSB so edge_open() sends IOSP_CMD_OPEN_PORT, gets txCredits, and kmalloc()s txfifo.fifo, then write()s while close() runs on the last fd. Those two syscalls take different locks (atomic_write_lock versus legacy_mutex), and the attacker repeats them until edge_write() overlaps edge_close()'s kfree.\nPR:L - serial_port_activate() calls edge_open(), which kmalloc()s txfifo.fifo, with no capable() check, and edge_write() and edge_close() add none. Opening that ttyUSB node takes the dialout group or the console session ACL.\nUI:N - The attacker opens the tty, writes, and closes the last fd, so their own n_tty_write() is the edge_write() that races edge_close().\nS:U - The dangling objects are the host slab FIFO kmalloc()'d in edge_open() and the URB from usb_alloc_urb(), both freed in edge_close() and reused by edge_write() on that same host kernel.\nC:H - send_more_port_data() memcpy()s from &txfifo.fifo[txfifo.tail] into its bulk-OUT buffer after edge_close() has kfree()'d that allocation, then usb_submit_urb()s the copy. Reusing the slab makes that memcpy a read of whatever kernel object replaced the FIFO.\nI:H - Before the open check, edge_write() memcpy()s the caller's write() bytes to fifo->fifo[fifo->head] after edge_close() kfree()s the FIFO. send_more_port_data() also kfree()s transfer_buffer through the write_urb pointer that edge_close() has already passed to usb_free_urb().\nA:H - edge_close() clears txfifo.fifo and write_urb only after kfree() and usb_free_urb(). A concurrent edge_write() memcpy or send_more_port_data() urb dereference faults on NULL or on the freed slab and oopses."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/serial/io_edgeport.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"7323691f51a65d47b1921ff8fe4a7235fa4dc2dc","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"f6e1a3ce87f6e62b244195680a0b73cf31ddb16c","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"4657a3bfeec45942f58392182c93289855c66198","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"9e015d664b458e15a925641805b342884c32f9e5","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"4097ed4285d32c732650d328dfa5d1ba141e8703","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"839ff5fa30995c40cd5fba15fd976ad63416738a","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/serial/io_edgeport.c"],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","lessThan":"2.6.12","status":"unaffected","versionType":"semver"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc4","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/7323691f51a65d47b1921ff8fe4a7235fa4dc2dc"},{"url":"https://git.kernel.org/stable/c/f6e1a3ce87f6e62b244195680a0b73cf31ddb16c"},{"url":"https://git.kernel.org/stable/c/4657a3bfeec45942f58392182c93289855c66198"},{"url":"https://git.kernel.org/stable/c/9e015d664b458e15a925641805b342884c32f9e5"},{"url":"https://git.kernel.org/stable/c/4097ed4285d32c732650d328dfa5d1ba141e8703"},{"url":"https://git.kernel.org/stable/c/839ff5fa30995c40cd5fba15fd976ad63416738a"}],"title":"USB: serial: io_edgeport: fix potential close() use-after-free","x_generator":{"engine":"bippy-1.2.0"}}}}