Description
In the Linux kernel, the following vulnerability has been resolved: xfrm: zero-initialise km_event in the replay-notify path xfrm_replay_notify(), xfrm_replay_notify_bmp() and xfrm_replay_notify_esn() declare a struct km_event on the stack and initialise only its .event and .data.aevent fields, leaving .seq and .portid uninitialised. build_aevent() then builds the XFRM_MSG_NEWAE message with those fields: nlmsg_put(skb, c->portid, c->seq, ...) so the netlink header of a replay event carries uninitialised stack values rather than defined ones. This was confirmed at runtime rather than by inspection alone: the .seq and .portid carried in that header hold values that nothing in the replay path assigns. The request-driven paths set these header fields from the requester (xfrm_get_ae() / xfrm_new_ae()); only the kernel-originated replay path leaves them unset. Zero-initialise the event so the header fields are 0, the correct value for a kernel-originated notification.
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
f8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < 62edd883dc8b8da74b1acebab45e4895b03a1c94affectedf8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < 8cf8f488ebaac6a3324f26bd2d6badec2c93faa3affectedf8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < 58c474af3879aab539ac179dd3e891827cb482d4affectedf8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < 5e14088d45ca7a07d6be4912f8f7a0635d4a3fc7affectedf8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < 9b2a11a479514b977ac8902603cc7e956188d0cdaffectedf8cd54884e675dfaf0c86cc7c088adb6ca9d7638 to < e35a12dffd5da67b6ca12bd23eebdd0570592205affected
Linux Linux
Default version status: affected
2.6.17affected0 to < 2.6.17unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
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 ↗