[Midnightbsd-cvs] [MidnightBSD/src] b66e4c: netipsec: validate PF_KEY socket address lengths

Lucas Holt noreply at github.com
Mon Aug 17 10:31:50 EDT 2026


  Branch: refs/heads/stable/4.1
  Home:   https://github.com/MidnightBSD/src
  Commit: b66e4cd1377d58a692d6b9ada2e81ea41ea40b67
      https://github.com/MidnightBSD/src/commit/b66e4cd1377d58a692d6b9ada2e81ea41ea40b67
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-17 (Mon, 17 Aug 2026)

  Changed paths:
    M sys/netipsec/key.c

  Log Message:
  -----------
  netipsec: validate PF_KEY socket address lengths

Validate new PF_KEY security association addresses before copying them into fixed-size index fields.  Convert the index setup macros to checked helpers so future callers retain the same bound invariant.

This ports FreeBSD src commits cba481a7bff2 and fffaf471280b.

AI-Assisted-by: OpenAI Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>


  Commit: 5ee85c7b0bbb03df3ed4eb1e14499c4067f2aa03
      https://github.com/MidnightBSD/src/commit/5ee85c7b0bbb03df3ed4eb1e14499c4067f2aa03
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-08-17 (Mon, 17 Aug 2026)

  Changed paths:
    M UPDATING

  Log Message:
  -----------
  UPDATING: note PF_KEY socket address fix

AI-Assisted-by: OpenAI Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>


Compare: https://github.com/MidnightBSD/src/compare/6f1bdd4dcb21...5ee85c7b0bbb

To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list