{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74262","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-08-15T05:44:03.877Z","datePublished":"2026-08-15T05:57:38.990Z","dateUpdated":"2026-08-17T05:45:10.909Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-17T05:45:10.909Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nkcm: use WRITE_ONCE() when changing lower socket callbacks\n\nkcm_attach() replaces a live lower TCP socket's sk_data_ready and\nsk_write_space callbacks with KCM handlers, and kcm_unattach() restores\nthem later. Those callback-pointer updates are still plain stores even\nthough the same fields can be read and invoked concurrently on other\nCPUs.\n\nIf another CPU observes an older callback snapshot after the live field\nhas already been restored, callback execution can run with a mismatched\ntarget and sk_user_data state, leading to stale or misdirected wakeups.\n\nUse WRITE_ONCE() for the callback replacement and restore operations so\nthese shared callback fields follow the same visibility contract already\nestablished by the earlier 4022 fixes."}],"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 bug is in kcm_attach()/kcm_unattach() callback replacement reachable only via local socket()/ioctl(SIOCKCMATTACH/UNATTACH); remote TCP can trigger callback invocation but cannot perform attach/detach without local access to the KCM socket.\nAC:L - The attacker controls both sides of the race by concurrently issuing attach/unattach ioctls while driving RX/TX on the same TCP socket to provoke READ_ONCE(sk_data_ready/sk_write_space) on other CPUs during callback pointer transitions.\nPR:L - No capability checks exist in KCM; any local user who can create AF_KCM sockets and load a BPF_PROG_TYPE_SOCKET_FILTER program (allowed without CAP_BPF on many systems, or via user-namespace capabilities) can reach the vulnerable ioctl path.\nUI:N - Exploitation requires only attacker-controlled local socket operations and concurrent network I/O; no victim user or administrator action is needed beyond the attacker using their own sockets.\nS:U - Impact is kernel memory corruption and privilege escalation within the same security authority; this is not a cross-boundary escape such as guest-to-host VM breakout or IOMMU bypass.\nC:H - Plain stores to sk_data_ready/sk_write_space can desynchronize from sk_user_data, letting stale KCM callbacks dereference freed or mismatched kcm_psock/strparser state and leak attacker-influenced kernel heap contents.\nI:H - Misdirected psock_write_space/psock_data_ready on dangling kcm_psock can corrupt heap metadata and queue_work on freed kcm_sock objects, enabling control-flow hijack and arbitrary kernel write primitives.\nA:H - The data race causes use-after-free and invalid pointer dereferences in softirq/workqueue callback paths, producing reliable kernel oops/panic or hang even when full exploitation is not achieved."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/kcm/kcmsock.c"],"versions":[{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"0cb3e2f40679032c1aa2186280a86e5ead0161ee","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"fa26e4606aed0f7fe793c325506adeda1d847a43","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"b4ccd6eef671d7c44a30123cd29f3acf3de8468e","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"b8c90823cdfb5f3d22f261aeb3e9066612853c36","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"11faefd11ce2448bac7279ab302dd1954a6547fe","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"f01fb6138f8eb606b56ce9158e2d8b72352c53f4","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"9684fff87124b201e11dea01ded9173025359a0f","status":"affected","versionType":"git"},{"version":"ab7ac4eb9832e32a09f4e8042705484d2fb0aad3","lessThan":"47186409c092cd7dd70350999186c700233e854d","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/kcm/kcmsock.c"],"versions":[{"version":"4.6","status":"affected"},{"version":"0","lessThan":"4.6","status":"unaffected","versionType":"semver"},{"version":"5.10.261","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.212","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.178","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.145","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.97","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.40","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.1.5","lessThanOrEqual":"7.1.*","status":"unaffected","versionType":"semver"},{"version":"7.2","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":"4.6","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"7.2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0cb3e2f40679032c1aa2186280a86e5ead0161ee"},{"url":"https://git.kernel.org/stable/c/fa26e4606aed0f7fe793c325506adeda1d847a43"},{"url":"https://git.kernel.org/stable/c/b4ccd6eef671d7c44a30123cd29f3acf3de8468e"},{"url":"https://git.kernel.org/stable/c/b8c90823cdfb5f3d22f261aeb3e9066612853c36"},{"url":"https://git.kernel.org/stable/c/11faefd11ce2448bac7279ab302dd1954a6547fe"},{"url":"https://git.kernel.org/stable/c/f01fb6138f8eb606b56ce9158e2d8b72352c53f4"},{"url":"https://git.kernel.org/stable/c/9684fff87124b201e11dea01ded9173025359a0f"},{"url":"https://git.kernel.org/stable/c/47186409c092cd7dd70350999186c700233e854d"}],"title":"kcm: use WRITE_ONCE() when changing lower socket callbacks","x_generator":{"engine":"bippy-1.2.0"}}}}