That Ubuntu Security Fix May Be Leaking Memory
TL;DR: A recent Ubuntu security patch for the libsoup library, meant to fix a denial-of-service flaw, unfortunately introduced a memory leak. A new update has been released to correct the faulty patch and prevent performance degradation on affected systems.
Key facts
- Category
- Cybersecurity
- Impact
- High
- Published
- Source
- Ubuntu Security Notices
Full summary
A recent Ubuntu security patch for the widely used libsoup library accidentally introduced a memory leak. A new update is now available.
Canonical has issued an urgent fix for a faulty security patch that affected major Ubuntu Long-Term Support (LTS) releases. According to an Ubuntu Security Notice, a recent update intended to secure the widely used `libsoup` networking library inadvertently introduced a significant memory leak. The original patch, USN-8890-1, was designed to protect against a denial-of-service vulnerability. However, developers and system administrators soon discovered that the fix itself was causing applications to consume progressively more memory over time, leading to performance degradation and potential crashes. The new update, USN-8890-3, has been released specifically to correct this regression, and Canonical has apologized for the inconvenience caused by the flawed initial patch.
The technical issue stems from a classic case of a patch creating an unintended side effect. The original vulnerability in `libsoup` allowed a remote attacker to trigger a denial-of-service condition by sending specially crafted HTTP/2 requests. While the first patch successfully closed this security hole, it introduced a bug in the library's handling of the "cookie jar," a component that manages website cookies. This new flaw resulted in a memory leak, where memory allocated for cookie management was not being properly released after use. Over time, this continuous, unreleased memory allocation would exhaust system resources, slowing down or even crashing the application or server. The latest patch resolves this memory leak without re-introducing the original denial-of-service vulnerability, restoring stability to the library.
This incident is a textbook example of a "patch regression," a common and frustrating challenge in the world of software maintenance and cybersecurity. The pressure to deploy security fixes quickly to protect against active threats can sometimes lead to an abbreviated testing cycle, increasing the risk of introducing new bugs. For a foundational component like `libsoup`, which is used by countless applications on Ubuntu for HTTP networking, the impact of such a regression is amplified across the ecosystem. It highlights the delicate balancing act that engineering teams face: securing systems rapidly versus ensuring the absolute stability of every update. This event underscores the critical importance of comprehensive regression testing, even for what might seem like a minor security fix, to prevent a well-intentioned patch from causing operational chaos.
For developers, IT administrators, and security teams, the immediate takeaway is to prioritize the deployment of the new USN-8890-3 update. This is not a routine patch but a critical fix for a performance-degrading bug that could be silently impacting services. Any system that received the faulty USN-8890-1 update is vulnerable to this memory leak. Beyond the immediate fix, this event serves as a valuable lesson in the importance of robust post-deployment monitoring. By closely tracking key performance metrics like memory and CPU usage after applying any system update, teams can create an early-warning system to detect anomalies and regressions. This "trust but verify" approach to patch management allows organizations to catch problems quickly, often before an official notice is even published, minimizing the potential impact on service stability and end-users.
Why it matters
This regression affects a core networking library on major Ubuntu LTS releases. The memory leak introduced by the initial patch can cause gradual performance degradation or even service outages, making the new fix a high-priority operational task for developers and IT teams.
Business impact
Fixing a security flaw only to introduce a performance bug creates unplanned work for engineering teams, diverting resources from product development. Unpatched, the memory leak could lead to service instability, risking customer-facing downtime and potential revenue loss.
⚡ Action needed
A new security update is available for `libsoup` on major Ubuntu LTS releases. Users should apply this patch immediately to fix the memory leak regression introduced by the previous update (USN-8890-1) and prevent potential performance issues or service outages.
Action checklist
- 1Identify systems running affected Ubuntu LTS releases (e.g., 22.04, 20.04).
- 2Check if the `libsoup` package was recently updated via USN-8890-1.
- 3Apply the new security update (USN-8890-3) using your system's package manager.
- 4Monitor affected services for memory usage to confirm the leak is resolved.
Tags
Related on Notifire
Related stories
Primary source: Ubuntu Security Notices
