Description
libcss through 0.9.2 contains a NULL pointer dereference vulnerability in mq_parse_media_query() that allows remote attackers to crash consumers by supplying media lists ending in a comma. Attackers can serve a stylesheet whose @media or @import media list has a trailing comma, causing NetSurf or other parsers to crash.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| netsurf-browser | libcss | ≤ 0.9.2 | — |
References
- Patch Commit patch
- https://github.com/netsurf-browser/libcss product
- https://github.com/netsurf-browser/libcss/blob/release/0.9.2/src/parse/mq.c#L984 technical-description
- https://hackmd.io/@haindpwn/libcss-media-list-null-deref third-party-advisory
- VulnCheck Advisory: libcss through 0.9.2 NULL Pointer Dereference via Media-Query Parser third-party-advisory