Integer Underflow and Buffer Overflow in ngIRCd Lists_MakeMask
ngIRCd versions before 0.8.2 contain an integer-underflow flaw in the Lists_MakeMask() function in lists.c. A remotely supplied overly long IRC MODE line can cause an incorrect length calculation. The resulting underflow leads to a buffer overflow, causing an application crash and potentially enabling arbitrary code execution.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
An unauthenticated remote attacker can cause a denial of service by crashing the ngIRCd process. Depending on exploitability of the resulting buffer overflow and target environment, the flaw may also permit arbitrary code execution in the security context of the IRC daemon.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the IRC server to trusted users only and monitor for abnormal or excessively long MODE lines. Consider applying any available vendor patches or workarounds that address the vulnerable code path.
Patch, then assume compromise.
Upgrade ngIRCd to version 0.8.2 or a later supported release containing the corrected length calculation.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.