Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libupnp: add patch for CVE-2020-13848
patch sourced from debian's 1.6.19+git20160116-1.2+deb9u1
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Description: CVE-2020-13848 | ||
remote attackers to cause a denial of service (crash) via a crafted | ||
SSDP message due to a NULL pointer dereference in the functions | ||
FindServiceControlURLPath and FindServiceEventURLPath in | ||
genlib/service_table/service_table.c | ||
|
||
--- | ||
Origin: https://github.com/pupnp/pupnp/commit/c805c1de1141cb22f74c0d94dd5664bda37398e0 | ||
Author: Abhijith PA <abhijith@debian.org> | ||
Bug: https://github.com/pupnp/pupnp/issues/177 | ||
Bug-Debian: https://bugs.debian.org/962282 | ||
Last-Update: 2020-06-07 | ||
|
||
--- a/upnp/src/genlib/service_table/service_table.c | ||
+++ b/upnp/src/genlib/service_table/service_table.c | ||
@@ -299,12 +299,11 @@ | ||
uri_type parsed_url; | ||
uri_type parsed_url_in; | ||
|
||
- if( ( table ) | ||
- && | ||
- ( parse_uri( eventURLPath, | ||
- strlen( eventURLPath ), | ||
- &parsed_url_in ) == HTTP_SUCCESS ) ) { | ||
- | ||
+ if (!table || !eventURLPath) { | ||
+ return NULL; | ||
+ } | ||
+ if (parse_uri(eventURLPath, strlen(eventURLPath), &parsed_url_in) == | ||
+ HTTP_SUCCESS) { | ||
finger = table->serviceList; | ||
while( finger ) { | ||
if( finger->eventURL ) | ||
@@ -351,11 +350,11 @@ | ||
uri_type parsed_url; | ||
uri_type parsed_url_in; | ||
|
||
- if( ( table ) | ||
- && | ||
- ( parse_uri | ||
- ( controlURLPath, strlen( controlURLPath ), | ||
- &parsed_url_in ) == HTTP_SUCCESS ) ) { | ||
+ if (!table || !controlURLPath) { | ||
+ return NULL; | ||
+ } | ||
+ if (parse_uri(controlURLPath, strlen(controlURLPath), &parsed_url_in) == | ||
+ HTTP_SUCCESS) { | ||
finger = table->serviceList; | ||
while( finger ) { | ||
if( finger->controlURL ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters