CVE-2026-139642

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

swim: Fix buffer overflow

The effect of this bug can be observed as swim_read_sector_data() inexplicably returning -5, or an error flag indicating that a mark byte was read from the data register, or other odd behviour.

When copying bytes from the chip FIFO to the read buffer, the driver keeps count of the remaining buffer space using register %d4. A counter in register %d2 serves as a timeout. The driver polls (%a2), the handshake register, until flags indicate that byte(s) have arrived in the FIFO.

movel #sector_size-1, %d4 read_new_data: movew #max_retry, %d2 read_data_loop: moveb %a2@, %d5 andb #0xc0, %d5 dbne %d2, read_data_loop beq data_exit moveb %a5@, %a4@+ andb #0x40, %d5 dbne %d4, read_new_data beq exit_loop

Note that the exit_loop branch depends upon a flag in the handshake register and not on the remaining buffer space. Hence there may be no branch to exit_loop after %d4 is decremented to -1 (i.e. full buffer).

moveb %a5@, %a4@+ dbra %d4, read_new_data exit_loop:

Here is a second decrement of %d4 which can now reach -2. But the buffer bounds check is a comparison with -1, which is now ineffective. Hence the loop will continue copying until %d2 eventually reaches -1.

Fix this bug by terminating the loop as soon as %d4 or %d2 reach -1. Reset the timeout whenever a byte is copied.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139643In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Guard steering anchor resource destruction on create error CVE-2026-139644In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - kill v5 IRQ tasklet during teardown On PCI devices usingCVE-2026-139645In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - kill v3 IRQ tasklet during teardown On PCI devices usingCVE-2026-139646In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - fix SFS ioctl race against device teardown sfs_ioctl() rCVE-2026-139647In the Linux kernel, the following vulnerability has been resolved: crypto: qat - hold cfg->lock when accessing config sections adf_cfg_seCVE-2026-139648In the Linux kernel, the following vulnerability has been resolved: crypto: asymmetric_keys/pkcs7 - Check all signers before waiving authatCVE-2026-139649In the Linux kernel, the following vulnerability has been resolved: crypto: asymmetric_keys/x509 - copy X.509 TBS for data signature algoriCVE-2026-139658.8Use after free in Oilpan in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandbox via a CVE-2026-139650In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix RQ resource reference leak in mlx5_ib_wq_event() Since CVE-2026-139651In the Linux kernel, the following vulnerability has been resolved: RDMA/cxgb4: Fix skb reference leak in rx_pkt() rx_pkt() takes an extraCVE-2026-139652In the Linux kernel, the following vulnerability has been resolved: RDMA/irdma: check vport device allocation An existing RDMA function doCVE-2026-139653In the Linux kernel, the following vulnerability has been resolved: wifi: rtl8xxxu: unwind incomplete receive startup rtl8xxxu_start() all
CVE-2026-139642: Unscored | Vulnix