Skip to content

ipe: fix two use-after-frees

Fan Wu linux-security-module lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ipe: fix use-after-free when auditing a newly loaded policysecurity/ipe/fs.c security/ipe/policy_fs.c+6 -50 replies
2/2ipe: protect the dm-verity root hash with RCUsecurity/ipe/eval.c security/ipe/eval.h security/ipe/hooks.c+26 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ipe: fix two use-after-frees

This series fixes two use-after-free bugs in IPE, both found by a recent AI-assisted code scan.

The first one is in the policy load audit path, where a concurrent delete can free the policy while it is being audited. The second one is in the dm-verity root hash path, where ->preresume can free a digest that policy evaluation is still using.

Fan Wu (2):
ipe: fix use-after-free when auditing a newly loaded policy
ipe: protect the dm-verity root hash with RCU

 security/ipe/eval.c      | 12 ++++++++----
 security/ipe/eval.h      |  2 +-
 security/ipe/fs.c        |  8 +++-----
 security/ipe/hooks.c     | 22 +++++++++++++++++-----
 security/ipe/policy_fs.c |  3 +++
 5 files changed, 32 insertions(+), 15 deletions(-)

base-commit: 93f51579e7df248780214094418f205253383cc5

Signature · 1 line
2.55.0