Ad139 — VECTOR with null (`$`) orientation on a live edge → signal(11) constructing the direction

§12.11 adversarial (sub-class: null mandatory scalar-reference → uninitialized-pointer crash)

P1 — silent data loss

crash adversarial

Sources

Description

A `VECTOR` supplies `$` (null) for its mandatory `orientation` DIRECTION reference — `VECTOR('null_dir_vector',$,L)` — and is the direction of a `LINE` used as the 3D curve of a real `EDGE_CURVE` (the seam edge) in a transferred `MANIFOLD_SOLID_BREP`. `$` is a syntactically valid Part-21 null token, so the file parses; but when the reader transfers the edge and constructs the vector, it dereferences the unresolved orientation. This is the OCCT analogue of the IronCAD uninitialized-pointer defect: a reader that builds the direction from the VECTOR without first checking the orientation slot resolved to a DIRECTION crashes.

Reproducer recipe

a clean truncated-cone `MANIFOLD_SOLID_BREP` (one `ADVANCED_FACE` on a `CONICAL_SURFACE`, cf. M202) whose seam-edge `LINE` takes its direction from `VECTOR('null_dir_vector',$,L)` — the orientation slot is `$` instead of a `DIRECTION` reference.

Expected kernel behavior

validate that the VECTOR's `orientation` slot resolved to a real DIRECTION before using it; drop or reject the malformed VECTOR (and the edge that depends on it) — never dereference an unresolved/uninitialized direction pointer.

Notes

RUNTIME-VERIFIED (2026-08-13, OCP/OCCT 7.8.1): both heal modes SIGSEGV (`occt=signal(11)/signal(11)`); gmsh and the OCAF document layer crash too. The byte-identical cone with a *valid* seam VECTOR loads `shape(1)` (cf. M202), isolating the null-orientation VECTOR as the sole cause. Notably `part21_strict` **accepts** (`$` is a legal null token, 0 unresolved refs) and the non-kernel structural linter reports **ok** — a null in a mandatory *scalar-reference* slot is not one of its five checks (DUPLICATE_ID / DANGLING_REF / SLOT_TYPE / ARG_COUNT / EMPTY_AGGREGATE), so this crash is currently **unrefusable pre-transfer** and suggests a candidate sixth check (null-in-mandatory-reference-slot). First VECTOR-defect crasher in the corpus, mined from an independent reader's CVE. Synonyms: "null orientation in VECTOR", "VECTOR missing direction", "uninitialized pointer parsing VECTOR", "null mandatory reference slot crash". Provenance tier: bytes-sufficient.

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Byte assertions

Cross-references

M202

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Ad139: a VECTOR entity supplies $ (null) for its mandatory orientation DIRECTION reference and is the direction of a LINE used as the 3D curve of a real EDGE_CURVE in a transferred solid, so the reader constructs the VECTOR on a live path; a reader that allocates the direction pointer while building the VECTOR and dereferences it without checking the orientation slot resolved accesses an uninitialized pointer (ZDI-22-1467 / CVE-2022-43609, IronCAD STP importer); expected robust behavior: validate that the orientation slot holds a DIRECTION before use, drop or reject the malformed VECTOR, never dereference an uninitialized direction pointer; synonyms: null orientation in VECTOR, VECTOR missing direction, uninitialized pointer parsing VECTOR, VECTOR null mandatory reference; the null-orientation VECTOR is the defect carrier */
3HEADER;
4FILE_DESCRIPTION(('Ad139'),'2;1');
5FILE_NAME('Ad139.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=DIRECTION('',(0.0,0.0,1.0));
12#3=DIRECTION('',(1.0,0.0,0.0));
13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3);
14#5=CONICAL_SURFACE('',#4,1.0,0.4);
15#6=CARTESIAN_POINT('',(1.0,0.0,0.0));
16#7=CARTESIAN_POINT('',(0.577206781262,0.0,1.0));
17#8=VERTEX_POINT('',#6);
18#9=VERTEX_POINT('',#7);
19#10=CARTESIAN_POINT('',(0.0,0.0,0.0));
20#11=DIRECTION('',(0.0,0.0,-1.0));
21#12=DIRECTION('',(1.0,0.0,0.0));
22#13=AXIS2_PLACEMENT_3D('',#10,#11,#12);
23#14=CIRCLE('',#13,1.0);
24#15=EDGE_CURVE('',#8,#8,#14,.T.);
25#16=CARTESIAN_POINT('',(0.0,0.0,1.0));
26#17=DIRECTION('',(0.0,0.0,1.0));
27#18=DIRECTION('',(1.0,0.0,0.0));
28#19=AXIS2_PLACEMENT_3D('',#16,#17,#18);
29#20=CIRCLE('',#19,0.577206781262);
30#21=EDGE_CURVE('',#9,#9,#20,.T.);
31#22=VECTOR('null_dir_vector',$,1.0857044283832387);
32#23=LINE('',#6,#22);
33#24=EDGE_CURVE('',#8,#9,#23,.T.);
34#25=ORIENTED_EDGE('',$,$,#24,.T.);
35#26=ORIENTED_EDGE('',$,$,#21,.T.);
36#27=ORIENTED_EDGE('',$,$,#24,.F.);
37#28=ORIENTED_EDGE('',$,$,#15,.F.);
38#29=EDGE_LOOP('',(#25,#26,#27,#28));
39#30=FACE_OUTER_BOUND('',#29,.T.);
40#31=ADVANCED_FACE('',(#30),#5,.T.);
41#32=CLOSED_SHELL('',(#31));
42#33=MANIFOLD_SOLID_BREP('',#32);
43#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
44#9051=PRODUCT('Ad139','Ad139','',(#9050));
45#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
46#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
47#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
48#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
49#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
50#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
51#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
52#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
53#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
54#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#33),#9060);
55#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
56ENDSEC;
57END-ISO-10303-21;