diff options
| author | Taehee Yoo <[email protected]> | 2025-03-28 06:22:37 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-31 23:44:49 +0000 |
| commit | 42f342387841891bbbd15e25d33eb510a0cf7a9a (patch) | |
| tree | 7e2f5ac3ca3a21fb6e478630c0453a46b9ac7c95 /lib/crypto/mpi/mpi-add.c | |
| parent | Merge branch 'selftests-drv-net-replace-the-rpath-helper-with-path-objects' (diff) | |
| download | kernel-42f342387841891bbbd15e25d33eb510a0cf7a9a.tar.gz kernel-42f342387841891bbbd15e25d33eb510a0cf7a9a.zip | |
net: fix use-after-free in the netdev_nl_sock_priv_destroy()
In the netdev_nl_sock_priv_destroy(), an instance lock is acquired
before calling net_devmem_unbind_dmabuf(), then releasing an instance
lock(netdev_unlock(binding->dev)).
However, a binding is freed in the net_devmem_unbind_dmabuf().
So using a binding after net_devmem_unbind_dmabuf() occurs UAF.
To fix this UAF, it needs to use temporary variable.
Fixes: ba6f418fbf64 ("net: bubble up taking netdev instance lock to callers of net_devmem_unbind_dmabuf()")
Signed-off-by: Taehee Yoo <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Reviewed-by: Xuan Zhuo <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
