{"id":"CVE-2026-143394","state":"PUBLISHED","title":"xfrm: zero-initialise km_event in the replay-notify path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: zero-initialise km_event in the replay-notify path\n\nxfrm_replay_notify(), xfrm_replay_notify_bmp() and\nxfrm_replay_notify_esn() declare a struct km_event on the stack and\ninitialise only its .event and .data.aevent fields, leaving .seq and\n.portid uninitialised. build_aevent() then builds the XFRM_MSG_NEWAE\nmessage with those fields:\n\n  nlmsg_put(skb, c->portid, c->seq, ...)\n\nso the netlink header of a replay event carries uninitialised stack\nvalues rather than defined ones. This was confirmed at runtime rather\nthan by inspection alone: the .seq and .portid carried in that header\nhold values that nothing in the replay path assigns.\n\nThe request-driven paths set these header fields from the requester\n(xfrm_get_ae() / xfrm_new_ae()); only the kernel-originated replay path\nleaves them unset. Zero-initialise the event so the header fields are 0,\nthe correct value for a kernel-originated notification.","publishedAt":"2026-12-03T09:22:36.132Z","updatedAt":"2026-12-03T09:22:36.132Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"62edd883dc8b8da74b1acebab45e4895b03a1c94","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"8cf8f488ebaac6a3324f26bd2d6badec2c93faa3","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"58c474af3879aab539ac179dd3e891827cb482d4","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"5e14088d45ca7a07d6be4912f8f7a0635d4a3fc7","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"9b2a11a479514b977ac8902603cc7e956188d0cd","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"e35a12dffd5da67b6ca12bd23eebdd0570592205","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_replay.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.17","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_replay.c"]}],"references":["https://git.kernel.org/stable/c/62edd883dc8b8da74b1acebab45e4895b03a1c94","https://git.kernel.org/stable/c/8cf8f488ebaac6a3324f26bd2d6badec2c93faa3","https://git.kernel.org/stable/c/58c474af3879aab539ac179dd3e891827cb482d4","https://git.kernel.org/stable/c/5e14088d45ca7a07d6be4912f8f7a0635d4a3fc7","https://git.kernel.org/stable/c/9b2a11a479514b977ac8902603cc7e956188d0cd","https://git.kernel.org/stable/c/e35a12dffd5da67b6ca12bd23eebdd0570592205"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143394.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143394","state":"PUBLISHED","datePublished":"2026-12-03T09:22:36.132Z","dateUpdated":"2026-12-03T09:22:36.132Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.373Z"},"containers":{"cna":{"title":"xfrm: zero-initialise km_event in the replay-notify path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: zero-initialise km_event in the replay-notify path\n\nxfrm_replay_notify(), xfrm_replay_notify_bmp() and\nxfrm_replay_notify_esn() declare a struct km_event on the stack and\ninitialise only its .event and .data.aevent fields, leaving .seq and\n.portid uninitialised. build_aevent() then builds the XFRM_MSG_NEWAE\nmessage with those fields:\n\n  nlmsg_put(skb, c->portid, c->seq, ...)\n\nso the netlink header of a replay event carries uninitialised stack\nvalues rather than defined ones. This was confirmed at runtime rather\nthan by inspection alone: the .seq and .portid carried in that header\nhold values that nothing in the replay path assigns.\n\nThe request-driven paths set these header fields from the requester\n(xfrm_get_ae() / xfrm_new_ae()); only the kernel-originated replay path\nleaves them unset. Zero-initialise the event so the header fields are 0,\nthe correct value for a kernel-originated notification."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"62edd883dc8b8da74b1acebab45e4895b03a1c94","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"8cf8f488ebaac6a3324f26bd2d6badec2c93faa3","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"58c474af3879aab539ac179dd3e891827cb482d4","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"5e14088d45ca7a07d6be4912f8f7a0635d4a3fc7","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"9b2a11a479514b977ac8902603cc7e956188d0cd","versionType":"git"},{"version":"f8cd54884e675dfaf0c86cc7c088adb6ca9d7638","status":"affected","lessThan":"e35a12dffd5da67b6ca12bd23eebdd0570592205","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_replay.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.17","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_replay.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/62edd883dc8b8da74b1acebab45e4895b03a1c94"},{"url":"https://git.kernel.org/stable/c/8cf8f488ebaac6a3324f26bd2d6badec2c93faa3"},{"url":"https://git.kernel.org/stable/c/58c474af3879aab539ac179dd3e891827cb482d4"},{"url":"https://git.kernel.org/stable/c/5e14088d45ca7a07d6be4912f8f7a0635d4a3fc7"},{"url":"https://git.kernel.org/stable/c/9b2a11a479514b977ac8902603cc7e956188d0cd"},{"url":"https://git.kernel.org/stable/c/e35a12dffd5da67b6ca12bd23eebdd0570592205"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:36.132Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.17","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}