Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107033306
D44079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
481 B
Referenced Files
None
Subscribers
None
D44079.diff
View Options
diff --git a/sys/netipsec/xform_esp.c b/sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c
+++ b/sys/netipsec/xform_esp.c
@@ -508,6 +508,13 @@
xd = crp->crp_opaque;
CURVNET_SET(xd->vnet);
sav = xd->sav;
+ if (sav->state >= SADB_SASTATE_DEAD) {
+ /* saidx is freed */
+ DPRINTF(("%s: dead SA %p spi %#x\n", __func__, sav, sav->spi));
+ ESPSTAT_INC(esps_notdb);
+ error = ESRCH;
+ goto bad;
+ }
skip = xd->skip;
protoff = xd->protoff;
cryptoid = xd->cryptoid;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 6:47 AM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15740323
Default Alt Text
D44079.diff (481 B)
Attached To
Mode
D44079: ipsec esp: avoid dereferencing freed secasindex
Attached
Detach File
Event Timeline
Log In to Comment