Description
xschem 2.9.9 through 3.4.7 contains a heap out-of-bounds write vulnerability in read_dataset() in src/rawtovcd.c due to an unchecked variable index. Attackers can supply a crafted ngspice .raw file that, when converted with rawtovcd, writes file-controlled heap pointers at chosen signed offsets, corrupting heap memory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Stefan Schippers | xschem | 2.9.9 – ≤ 3.4.7 | — |
References
- https://github.com/StefanSchippers/xschem/commit/e29af39c6133c36bdaf66603fd663231e75517f1 patch
- https://github.com/StefanSchippers/xschem/blob/3.4.7/src/rawtovcd.c#L124-L148 technical-description
- https://github.com/StefanSchippers/xschem product
- VulnCheck Advisory: xschem 2.9.9 through 3.4.7 Heap Out-of-Bounds Write via rawtovcd read_dataset() third-party-advisory