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

Investigate libxml2 vulnerabilities patched in USN-4991-1 #2274

Closed
flavorjones opened this issue Jun 17, 2021 · 2 comments
Closed

Investigate libxml2 vulnerabilities patched in USN-4991-1 #2274

flavorjones opened this issue Jun 17, 2021 · 2 comments

Comments

@flavorjones
Copy link
Member

flavorjones commented Jun 17, 2021

This issue is to drive investigation and potential action around a set of upstream patches that Canonical judged valuable enough to backport to their distributions using a 2.9.10-based version.

References:

Summary of Analysis

All of the vulnerabilities listed in this USN are addressed in v2.9.11, and are addressed in the vendored version of libxml2 shipped by Nokogiri v1.11.4 and later.


History of this notication

  • 2021-06-17 Issue created after USN was issued
  • 2021-06-18 Analysis performed, no action necessary, issue updated and closed.
@flavorjones
Copy link
Member Author

Analysis

CVE-2017-8872

The htmlParseTryOrFinish function in HTMLparser.c in libxml2 2.9.4 allows attackers to cause a denial of service (buffer over-read) or information disclosure.

This patch first appears in libxml 2.9.9, which makes me wonder why it's listed as part of this USN. There's a side note that might be illuminating: "fix debian used isn't the final upstream fix". Perhaps a conflicting patch was removed and the upstream fix was adopted? In any case, I'm confident this is addressed in the libxml 2.9.12 version currently being vendored in Nokogiri.

CVE-2019-20388

xmlSchemaPreRun in xmlschemas.c in libxml2 2.9.10 allows an xmlSchemaValidateStream memory leak.

This patch first appears in libxml 2.9.11.

CVE-2020-24977

GNOME project libxml2 v2.9.10 has a global buffer over-read vulnerability in xmlEncodeEntitiesInternal at libxml2/entities.c. The issue has been fixed in commit 50f06b3e.

This patch first appears in libxml 2.9.11

CVE-2021-3517

There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could trigger an out-of-bounds read. The most likely impact of this flaw is to application availability, with some potential impact to confidentiality and integrity if an attacker is able to use memory information to further exploit the application.

This patch first appears in libxml 2.9.11

CVE-2021-3516

There’s a flaw in libxml2’s xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by xmllint could trigger a use-after-free. The greatest impact of this flaw is to confidentiality, integrity, and availability.

This patch first appears in libxml 2.9.11

CVE-2021-3518

There’s a flaw in libxml2 in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by an application linked with libxml2 could trigger a use-after-free. The greatest impact from this flaw is to confidentiality, integrity, and availability.

This patch first appears in libxml 2.9.11

CVE-2021-3537

A vulnerability found in libxml2 in versions before 2.9.11 shows that it did not propagate errors while parsing XML mixed content, causing a NULL dereference. If an untrusted XML document was parsed in recovery mode and post-validated, the flaw could be used to crash the application. The highest threat from this vulnerability is to system availability.

This patch first appears in libxml 2.9.11

CVE-2021-3541

A flaw was found in libxml2. Exponential entity expansion attack its possible bypassing all existing protection mechanisms and leading to denial of service.

This patch first appears in libxml 2.9.11

@flavorjones
Copy link
Member Author

Summary

All of the vulnerabilities listed in this USN are addressed in v2.9.11, and are addressed in the vendored version of libxml2 shipped by Nokogiri v1.11.4 and later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant