Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion dwg2dxf: decode.c:5801: int decode_preR13_entities(BITCODE_RL, BITCODE_RL, unsigned int, BITCODE_RL, BITCODE_RL, Bit_Chain *, Dwg_Data *): Assertion `!dat->bit' failed. Aborted. #492

Closed
cxlzff opened this issue Jun 7, 2022 · 4 comments
Assignees
Labels
bug Something isn't working fuzzing Intentional illegal input invalid CVE not repro in the latest release

Comments

@cxlzff
Copy link

cxlzff commented Jun 7, 2022

system info

Ubuntu x86_64, clang 6.0, dwg2dxf(0.12.4.4608)

Command line

./programs/dwg2dxf -b -m @@ -o /dev/null

output

dwg2dxf: decode.c:5801: int decode_preR13_entities(BITCODE_RL, BITCODE_RL, unsigned int, BITCODE_RL, BITCODE_RL, Bit_Chain *, Dwg_Data *): Assertion `!dat->bit' failed.
Aborted

poc

https://gitee.com/cxlzff/fuzz-poc/raw/master/libredwg/decode_preR13_entities_Assertion

@rurban rurban added bug Something isn't working fuzzing Intentional illegal input labels Jun 7, 2022
@rurban rurban self-assigned this Jun 7, 2022
@abergmann
Copy link

CVE-2022-33024 was assigned to this issue.

@rurban
Copy link
Contributor

rurban commented Jun 24, 2022

Invalid CVE, not repro in the latest release 0.12.5

programs/dwg2dxf -b ../test/issues/gh492/decode_preR13_entities_Assertion 
Reading DWG file ../test/issues/gh492/decode_preR13_entities_Assertion
ERROR: This version of LibreDWG is only capable of decoding version r13-r2018 (code: AC1012-AC1032) DWG files.
We don't decode many entities and no blocks yet.
ERROR: Unknown object type 0
ERROR: Invalid table number 16 for LAYER    [ 2]
ERROR: Invalid table number 65548 for STYLE    [ 3]
ERROR: Invalid table number 128 for LTYPE    [ 5]
ERROR: Invalid table number 67371008 for VIEW     [ 6]
ERROR: Invalid table number -1643903996 for UCS      [ 7]
ERROR: Invalid table number -457043299 for VPORT    [ 8]
ERROR: Invalid table number -999567258 for APPID    [ 9]
ERROR: Invalid table number -791621424 for DIMSTYLE [10]
ERROR: Invalid table number 67372036 for VX       [11]
ERROR: Failed to decode file: ../test/issues/gh492/decode_preR13_entities_Assertion 0x800

READ ERROR 0x800

@rurban rurban added the invalid CVE not repro in the latest release label Jun 24, 2022
@ajakk
Copy link

ajakk commented Jul 3, 2022

That doesn't necessarily mean the CVE is invalid, just that the description is wrong. That said, did anyone tell MITRE?

@rurban
Copy link
Contributor

rurban commented Dec 15, 2022

No, I didn't tell MITRE about a tripped assertion bug in an unreleased version.
They get a lot of such invalid reports. I even had to add a special tag for them.

Tested it again in master, not repro anymore.

@rurban rurban closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fuzzing Intentional illegal input invalid CVE not repro in the latest release
Projects
None yet
Development

No branches or pull requests

4 participants