git: 78918c9b271c - main - pf: Fix NULL deref in m_pullup failure case
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jul 2024 19:58:47 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=78918c9b271cb71419111abb5780f8a5adb4f2f5
commit 78918c9b271cb71419111abb5780f8a5adb4f2f5
Author: Igor Ostapenko <pm@igoro.pro>
AuthorDate: 2024-07-02 17:36:28 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-07-02 19:58:32 +0000
pf: Fix NULL deref in m_pullup failure case
Reviewed by: glebius, kp
Differential Revision: https://reviews.freebsd.org/D45832
---
sys/netpfil/pf/pf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 4ad0a9a1336a..21647bd733f8 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -8085,8 +8085,7 @@ pf_test(int dir, int pflags, struct ifnet *ifp, struct mbuf **m0,
if (m->m_len < sizeof(struct ip) &&
(m = *m0 = m_pullup(*m0, sizeof(struct ip))) == NULL) {
DPFPRINTF(PF_DEBUG_URGENT,
- ("pf_test: m_len=%d < sizeof(struct ip), pullup failed\n",
- m->m_len));
+ ("pf_test: m_len < sizeof(struct ip), pullup failed\n"));
PF_RULES_RUNLOCK();
return (PF_DROP);
}