CVE-2026-74719
JSON

Not scored

net/smc: fix qentry overwrite for CONFIRM_LINK and ADD_LINK_CONT in smc_llc_event_handler()

Severity
Not scored
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix qentry overwrite for CONFIRM_LINK and ADD_LINK_CONT in smc_llc_event_handler() The SMC_LLC_CONFIRM_LINK / SMC_LLC_ADD_LINK_CONT branch in smc_llc_event_handler() stores an incoming qentry into the local LLC flow without first checking whether a qentry is already pending. If a malicious or buggy peer sends a second CONFIRM_LINK or ADD_LINK_CONT request while a flow is active and flow->qentry is already set, smc_llc_flow_qentry_set() overwrites the pointer without freeing the previous allocation, leaking one kmalloc-96 object per spurious message. The sibling SMC_LLC_DELETE_LINK branch already has the correct !flow->qentry guard. Apply the same guard to the CONFIRM_LINK/ADD_LINK_CONT branch so that a duplicate message when qentry is already occupied falls through to break and is freed by the kfree(qentry) at the out: label, rather than silently leaking the existing allocation. The response direction (smc_llc_rx_response()) is unaffected: it already guards with flow->qentry at the equivalent site and drops duplicate responses correctly.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before e384f3cba6ea709f5b2272b1770db4ce14047f78, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before a1e980d7a9e7ee6faf4f5fd7b450413b969af26d, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before e0eb87677c76b157cdf8eb7c1f19e56227165a33, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before 06734dfeaeba886aab1bf147249195b888ac3e4d, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before c23c409228629107203d3c3e95fff1473173f1a6, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before 10cb31b2b74cb664c6c95cf72364d7d5c483ab82, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before bfc336a9fbbf09805f3dfe25c195a4db90af2846, from 0fb0b02bd6fd26cba38002be4a6bbcae2228fd44 before 976245094925bab9bc39366b2e9ab44ffcde61d0 and 1 more
Not affected: before 5.8, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*
CVE List

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net/smc: fix qentry overwrite for CONFIRM_LINK and ADD_LINK_CONT in smc_llc_event_handler() The SMC_LLC_CONFIRM_LINK / SMC_LLC_ADD_LINK_CONT branch in smc_llc_event_handler() stores an incoming qentry into the local LLC flow without first checking whether a qentry is already pending. If a malicious or buggy peer sends a second CONFIRM_LINK or ADD_LINK_CONT request while a flow is active and flow->qentry is already set, smc_llc_flow_qentry_set() overwrites the pointer without freeing the previous allocation, leaking one kmalloc-96 object per spurious message. The sibling SMC_LLC_DELETE_LINK branch already has the correct !flow->qentry guard. Apply the same guard to the CONFIRM_LINK/ADD_LINK_CONT branch so that a duplicate message when qentry is already occupied falls through to break and is freed by the kfree(qentry) at the out: label, rather than silently leaking the existing allocation. The response direction (smc_llc_rx_response()) is unaffected: it already guards with flow->qentry at the equivalent site and drops duplicate responses correctly.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/smc: corrección de sobrescritura de qentry para CONFIRM_LINK y ADD_LINK_CONT en smc_llc_event_handler() La rama SMC_LLC_CONFIRM_LINK / SMC_LLC_ADD_LINK_CONT en smc_llc_event_handler() almacena un qentry entrante en el flujo LLC local sin verificar primero si un qentry ya está pendiente. Si un par malicioso o defectuoso envía una segunda solicitud CONFIRM_LINK o ADD_LINK_CONT mientras un flujo está activo y flow -> qentry ya está establecido, smc_llc_flow_qentry_set() sobrescribe el puntero sin liberar la asignación anterior, fugando un objeto kmalloc-96 por mensaje espurio. La rama hermana SMC_LLC_DELETE_LINK ya tiene la protección !flow -> qentry correcta. Aplique la misma protección a la rama CONFIRM_LINK/ADD_LINK_CONT para que un mensaje duplicado, cuando qentry ya está ocupado, pase a 'break' y sea liberado por kfree(qentry) en la etiqueta 'out:', en lugar de fugar silenciosamente la asignación existente. La dirección de respuesta (smc_llc_rx_response()) no se ve afectada: ya se protege con flow -> qentry en el sitio equivalente y descarta las respuestas duplicadas correctamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74719 changed 2026-08-22CVE Terms of Use
NVDCVE-2026-74719 changed 2026-10-14Public domain