Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-74262

kcm: use WRITE_ONCE() when changing lower socket callbacks

Description

In the Linux kernel, the following vulnerability has been resolved: kcm: use WRITE_ONCE() when changing lower socket callbacks kcm_attach() replaces a live lower TCP socket's sk_data_ready and sk_write_space callbacks with KCM handlers, and kcm_unattach() restores them later. Those callback-pointer updates are still plain stores even though the same fields can be read and invoked concurrently on other CPUs. If another CPU observes an older callback snapshot after the live field has already been restored, callback execution can run with a mismatched target and sk_user_data state, leading to stale or misdirected wakeups. Use WRITE_ONCE() for the callback replacement and restore operations so these shared callback fields follow the same visibility contract already established by the earlier 4022 fixes.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < 0cb3e2f40679032c1aa2186280a86e5ead0161eeaffected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < fa26e4606aed0f7fe793c325506adeda1d847a43affected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < b4ccd6eef671d7c44a30123cd29f3acf3de8468eaffected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < b8c90823cdfb5f3d22f261aeb3e9066612853c36affected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < 11faefd11ce2448bac7279ab302dd1954a6547feaffected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < f01fb6138f8eb606b56ce9158e2d8b72352c53f4affected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < 9684fff87124b201e11dea01ded9173025359a0faffected
  • ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 to < 47186409c092cd7dd70350999186c700233e854daffected

Linux Linux

Default version status: affected

  • 4.6affected
  • 0 to < 4.6unaffected
  • 5.10.261 to ≤ 5.10.*unaffected
  • 5.15.212 to ≤ 5.15.*unaffected
  • 6.1.178 to ≤ 6.1.*unaffected
  • 6.6.145 to ≤ 6.6.*unaffected
  • 6.12.97 to ≤ 6.12.*unaffected
  • 6.18.40 to ≤ 6.18.*unaffected
  • 7.1.5 to ≤ 7.1.*unaffected
  • 7.2 to ≤ *unaffected

References