prior_version stringlengths 69 33.8k | after_version stringlengths 27 34.8k | vuln_id stringlengths 13 19 | cwe_id stringclasses 137
values | score float64 0 10 | chain stringlengths 78 111 | dataset stringclasses 2
values | summary stringlengths 44 6.88k | published_date stringdate 2009-05-11 00:00:00 2022-08-11 00:00:00 | chain_len int64 1 1 | project stringlengths 26 59 | commit_href stringlengths 74 107 | commit_sha stringlengths 40 40 | patch stringclasses 1
value | chain_ord stringlengths 44 44 | before_first_fix_commit stringlengths 44 88 | last_fix_commit stringlengths 40 40 | chain_ord_pos int64 1 1 | commit_datetime stringlengths 20 20 | message stringlengths 2 8.66k | author stringlengths 2 44 | comments stringclasses 155
values | stats stringclasses 474
values | files listlengths 1 1 | file_extension stringclasses 14
values | cwe stringclasses 25
values | file_paths listlengths 1 1 | file_paths_str stringlengths 4 162 | num_files int64 1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static Image *ReadWPGImage(const ImageInfo *image_info, if(i==EOF) break; Rd_WP_DWORD(image,&Rec.RecordLength); if(EOFBlob(image)) break; | static Image *ReadWPGImage(const ImageInfo *image_info, if(i==EOF) break; Rd_WP_DWORD(image,&Rec.RecordLength); if (Rec.RecordLength > GetBlobSize(image)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); if(EOFBlob(image)) break;... | CVE-2017-14341 | {'CWE-400'} | 6.9 | {'https://github.com/ImageMagick/ImageMagick/commit/7d63315a64267c565d1f34b9cb523a14616fed24'} | nvd | ImageMagick 7.0.6-6 has a large loop vulnerability in ReadWPGImage in coders/wpg.c, causing CPU exhaustion via a crafted wpg image file. | 2017-09-12 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/7d63315a64267c565d1f34b9cb523a14616fed24 | 7d63315a64267c565d1f34b9cb523a14616fed24 | SINGLE | ['7d63315a64267c565d1f34b9cb523a14616fed24'] | {'f1ea048a3a34df293764502401d966aeacf9179d'} | 7d63315a64267c565d1f34b9cb523a14616fed24 | 1 | 08/07/2017, 18:59:43 | https://github.com/ImageMagick/ImageMagick/issues/654 | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -1035,6 +1035,8 @@ static Image *ReadWPGImage(const ImageInfo *image_info,\n if(i==EOF)\n break;\n Rd_WP_DWORD(image,&Rec.RecordLength);\n+ if (Rec.RecordLength > GetBlobSize(image))\n+ T... | c | CWE-400 | [
"coders/wpg.c"
] | coders/wpg.c | 1 |
static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct timespec ts; __u32 ts_status; bool is_drop_n_account = false; /* struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT. * We may add members to them until current aligned size without forcing static int tpacket_rcv(struct... | static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct timespec ts; __u32 ts_status; bool is_drop_n_account = false; bool do_vnet = false; /* struct tpacket{2,3}_hdr is aligned to a multiple of TPACKET_ALIGNMENT. * We may add members to them until current aligned size without forcing static... | CVE-2017-14497 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/edbd58be15a957f6a760c4a514cd475217eb97fd'} | nvd | The tpacket_rcv function in net/packet/af_packet.c in the Linux kernel before 4.13 mishandles vnet headers, which might allow local users to cause a denial of service (buffer overflow, and disk and memory corruption) or possibly have unspecified other impact via crafted system calls. | 2017-09-15 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/edbd58be15a957f6a760c4a514cd475217eb97fd | edbd58be15a957f6a760c4a514cd475217eb97fd | SINGLE | ['edbd58be15a957f6a760c4a514cd475217eb97fd'] | {'d55c60eba0ef44ec21831ce26db300763eafd865'} | edbd58be15a957f6a760c4a514cd475217eb97fd | 1 | 08/28/2017, 18:29:41 | packet: Don't write vnet header beyond end of buffer
... which may happen with certain values of tp_reserve and maclen.
Fixes: 58d19b19cd99 ("packet: vnet_hdr support for tpacket_rcv")
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Cc: Willem de Bruijn <willemb@google.com>
Acked-by: Willem de Bruijn <willemb@goo... | Benjamin Poirier | null | {'additions': 9, 'deletions': 3, 'total': 12} | [
{
"additions": 9,
"changes": 12,
"deletions": 3,
"patch": "@@ -2191,6 +2191,7 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,\n \tstruct timespec ts;\n \t__u32 ts_status;\n \tbool is_drop_n_account = false;\n+\tbool do_vnet = false;\n \n \t/* struct tpacket{2,3}_hdr is aligned... | c | CWE-119 | [
"net/packet/af_packet.c"
] | net/packet/af_packet.c | 1 |
read_header(struct archive_read *a, struct archive_entry *entry, return (ARCHIVE_FATAL); } filename[filename_size++] = '\0'; filename[filename_size++] = '\0'; /* Decoded unicode form is UTF-16BE, so we have to update a string * conversion object for it. */ | read_header(struct archive_read *a, struct archive_entry *entry, return (ARCHIVE_FATAL); } filename[filename_size++] = '\0'; /* * Do not increment filename_size here as the computations below * add the space for the terminating NUL explicitly. */ filename[filename_s... | CVE-2017-14502 | {'CWE-193', 'CWE-125'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/5562545b5562f6d12a4ef991fae158bf4ccf92b6'} | nvd | read_header in archive_read_support_format_rar.c in libarchive 3.3.2 suffers from an off-by-one error for UTF-16 names in RAR archives, leading to an out-of-bounds read in archive_read_format_rar_read_header. | 2017-09-17 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/5562545b5562f6d12a4ef991fae158bf4ccf92b6 | 5562545b5562f6d12a4ef991fae158bf4ccf92b6 | SINGLE | ['5562545b5562f6d12a4ef991fae158bf4ccf92b6'] | {'add25e44b62f737b0b214c91d0fc7aaa31d6a2d7'} | 5562545b5562f6d12a4ef991fae158bf4ccf92b6 | 1 | 09/09/2017, 15:47:32 | Avoid a read off-by-one error for UTF16 names in RAR archives.
Reported-By: OSS-Fuzz issue 573 | Joerg Sonnenberger | {'com_1': {'author': 'carnil', 'datetime': '09/17/2017, 18:28:23', 'body': 'The issue fixed by this commit was assigned CVE-2017-14502'}} | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -1496,7 +1496,11 @@ read_header(struct archive_read *a, struct archive_entry *entry,\n return (ARCHIVE_FATAL);\n }\n filename[filename_size++] = '\\0';\n- filename[filename_size++] = '\\0';\n+ /*\n+ * Do... | c | CWE-125 | [
"libarchive/archive_read_support_format_rar.c"
] | libarchive/archive_read_support_format_rar.c | 1 |
AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream& stream, case AP4_ATOM_TYPE_HVCE: if (atom_is_large) return AP4_ERROR_INVALID_FORMAT; atom = AP4_HvccAtom::Create(size_32, stream); atom->SetType(AP4_ATOM_TYPE_HVCE); break; case AP4_ATOM_TYPE_AVCE... | AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream& stream, case AP4_ATOM_TYPE_HVCE: if (atom_is_large) return AP4_ERROR_INVALID_FORMAT; atom = AP4_HvccAtom::Create(size_32, stream); if (atom) { atom->SetType(AP4_ATOM_TYPE_HVCE); } ... | CVE-2017-14638 | {'CWE-476'} | 2.9 | {'https://github.com/axiomatic-systems/Bento4/commit/be7185faf7f52674028977dcf501c6039ff03aa5'} | nvd | AP4_AtomFactory::CreateAtomFromStream in Core/Ap4AtomFactory.cpp in Bento4 version 1.5.0-617 has missing NULL checks, leading to a NULL pointer dereference, segmentation fault, and application crash in AP4_Atom::SetType in Core/Ap4Atom.h. | 2017-09-21 | 1 | https://github.com/axiomatic-systems/Bento4 | https://github.com/axiomatic-systems/Bento4/commit/be7185faf7f52674028977dcf501c6039ff03aa5 | be7185faf7f52674028977dcf501c6039ff03aa5 | SINGLE | ['be7185faf7f52674028977dcf501c6039ff03aa5'] | {'d0d9473b0c57345a6afa5890666a7250ad64bcb1'} | be7185faf7f52674028977dcf501c6039ff03aa5 | 1 | 09/09/2017, 17:36:28 | fix for #182 | Gilles Boccon-Gibod | null | {'additions': 6, 'deletions': 2, 'total': 8} | [
{
"additions": 6,
"changes": 8,
"deletions": 2,
"patch": "@@ -490,13 +490,17 @@ AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream& stream,\n case AP4_ATOM_TYPE_HVCE:\n if (atom_is_large) return AP4_ERROR_INVALID_FORMAT;\n atom = AP4_HvccAtom::Create(size_32, stre... | cpp | CWE-476 | [
"Source/C++/Core/Ap4AtomFactory.cpp"
] | Source/C++/Core/Ap4AtomFactory.cpp | 1 |
AP4_AtomSampleTable::GetSample(AP4_Ordinal index, AP4_UI32 cts_offset = 0; AP4_UI64 dts = 0; AP4_UI32 duration = 0; result = m_SttsAtom->GetDts(index, dts, &duration); if (AP4_FAILED(result)) return result; sample.SetDuration(duration); sample.SetDts(dts); if (m_CttsAtom == NUL... | AP4_AtomSampleTable::GetSample(AP4_Ordinal index, AP4_UI32 cts_offset = 0; AP4_UI64 dts = 0; AP4_UI32 duration = 0; if (m_SttsAtom) { result = m_SttsAtom->GetDts(index, dts, &duration); if (AP4_FAILED(result)) return result; } sample.SetDuration(duration); sample.Se... | CVE-2017-14640 | {'CWE-476'} | 2.9 | {'https://github.com/axiomatic-systems/Bento4/commit/2f267f89f957088197f4b1fc254632d1645b415d'} | nvd | A NULL pointer dereference was discovered in AP4_AtomSampleTable::GetSample in Core/Ap4AtomSampleTable.cpp in Bento4 version 1.5.0-617. The vulnerability causes a segmentation fault and application crash, which leads to remote denial of service. | 2017-09-21 | 1 | https://github.com/axiomatic-systems/Bento4 | https://github.com/axiomatic-systems/Bento4/commit/2f267f89f957088197f4b1fc254632d1645b415d | 2f267f89f957088197f4b1fc254632d1645b415d | SINGLE | ['2f267f89f957088197f4b1fc254632d1645b415d'] | {'be7185faf7f52674028977dcf501c6039ff03aa5'} | 2f267f89f957088197f4b1fc254632d1645b415d | 1 | 09/09/2017, 17:42:03 | fix for #183 | Gilles Boccon-Gibod | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -140,8 +140,10 @@ AP4_AtomSampleTable::GetSample(AP4_Ordinal index,\n AP4_UI32 cts_offset = 0;\n AP4_UI64 dts = 0;\n AP4_UI32 duration = 0;\n- result = m_SttsAtom->GetDts(index, dts, &duration);\n- if (AP4_FAILED... | cpp | CWE-476 | [
"Source/C++/Core/Ap4AtomSampleTable.cpp"
] | Source/C++/Core/Ap4AtomSampleTable.cpp | 1 |
AP4_AtomMetaDataValue::ToInteger() const +---------------------------------------------------------------------*/ AP4_DataAtom::AP4_DataAtom(const AP4_MetaData::Value& value) : AP4_Atom(AP4_ATOM_TYPE_DATA, AP4_ATOM_HEADER_SIZE), m_DataType(DATA_TYPE_BINARY) { AP4_MemoryByteStream* memory = new AP4_MemoryBy... | AP4_AtomMetaDataValue::ToInteger() const +---------------------------------------------------------------------*/ AP4_DataAtom::AP4_DataAtom(const AP4_MetaData::Value& value) : AP4_Atom(AP4_ATOM_TYPE_DATA, AP4_ATOM_HEADER_SIZE), m_DataType(DATA_TYPE_BINARY), m_Source(NULL) { AP4_MemoryByteStream* memor... | CVE-2017-14641 | {'CWE-476'} | 2.9 | {'https://github.com/axiomatic-systems/Bento4/commit/41cad602709436628f07b4c4f64e9ff7a611f687'} | nvd | A NULL pointer dereference was discovered in the AP4_DataAtom class in MetaData/Ap4MetaData.cpp in Bento4 version 1.5.0-617. The vulnerability causes a segmentation fault and application crash, which leads to remote denial of service. | 2017-09-21 | 1 | https://github.com/axiomatic-systems/Bento4 | https://github.com/axiomatic-systems/Bento4/commit/41cad602709436628f07b4c4f64e9ff7a611f687 | 41cad602709436628f07b4c4f64e9ff7a611f687 | SINGLE | ['41cad602709436628f07b4c4f64e9ff7a611f687'] | {'2f267f89f957088197f4b1fc254632d1645b415d'} | 41cad602709436628f07b4c4f64e9ff7a611f687 | 1 | 09/09/2017, 17:47:31 | fix for #184 | Gilles Boccon-Gibod | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -1258,7 +1258,8 @@ AP4_AtomMetaDataValue::ToInteger() const\n +---------------------------------------------------------------------*/\n AP4_DataAtom::AP4_DataAtom(const AP4_MetaData::Value& value) :\n AP4_Atom(AP4_ATOM_TYPE_DATA, AP4_... | cpp | CWE-476 | [
"Source/C++/MetaData/Ap4MetaData.cpp"
] | Source/C++/MetaData/Ap4MetaData.cpp | 1 |
AP4_HdlrAtom::AP4_HdlrAtom(AP4_UI32 size, stream.ReadUI32(m_Reserved[2]); // read the name unless it is empty int name_size = size-(AP4_FULL_ATOM_HEADER_SIZE+20); if (name_size == 0) return; char* name = new char[name_size+1]; stream.Read(name, name_size); name[name_size] = '\0'... | AP4_HdlrAtom::AP4_HdlrAtom(AP4_UI32 size, stream.ReadUI32(m_Reserved[2]); // read the name unless it is empty if (size < AP4_FULL_ATOM_HEADER_SIZE+20) return; AP4_UI32 name_size = size-(AP4_FULL_ATOM_HEADER_SIZE+20); char* name = new char[name_size+1]; if (name == NULL) return; ... | CVE-2017-14642 | {'CWE-476'} | 2.9 | {'https://github.com/axiomatic-systems/Bento4/commit/22192de5367fa0cee985917f092be4060b7c00b0'} | nvd | A NULL pointer dereference was discovered in the AP4_HdlrAtom class in Bento4 version 1.5.0-617. The vulnerability causes a segmentation fault and application crash in AP4_StdcFileByteStream::ReadPartial in System/StdC/Ap4StdCFileByteStream.cpp, which leads to remote denial of service. | 2017-09-21 | 1 | https://github.com/axiomatic-systems/Bento4 | https://github.com/axiomatic-systems/Bento4/commit/22192de5367fa0cee985917f092be4060b7c00b0 | 22192de5367fa0cee985917f092be4060b7c00b0 | SINGLE | ['22192de5367fa0cee985917f092be4060b7c00b0'] | {'41cad602709436628f07b4c4f64e9ff7a611f687'} | 22192de5367fa0cee985917f092be4060b7c00b0 | 1 | 09/09/2017, 17:56:33 | fix for #185 | Gilles Boccon-Gibod | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -80,9 +80,10 @@ AP4_HdlrAtom::AP4_HdlrAtom(AP4_UI32 size,\n stream.ReadUI32(m_Reserved[2]);\n \n // read the name unless it is empty\n- int name_size = size-(AP4_FULL_ATOM_HEADER_SIZE+20);\n- if (name_size == 0) re... | cpp | CWE-476 | [
"Source/C++/Core/Ap4HdlrAtom.cpp"
] | Source/C++/Core/Ap4HdlrAtom.cpp | 1 |
private function _raw($convert = false, $options = array()) $tmpin = $this->toFile($this->_data); $tmpout = Horde_Util::getTempFile('img', false, $this->_tmpdir); $command = $this->_convert . ' ' . implode(' ', $this->_operations) . ' "' . $tmpin . '"\'[' . $options['index'] . ']\' ... | private function _raw($convert = false, $options = array()) $tmpin = $this->toFile($this->_data); $tmpout = Horde_Util::getTempFile('img', false, $this->_tmpdir); $command = $this->_convert . ' ' . implode(' ', $this->_operations) . ' "' . $tmpin . '"\'[' . (integer)$options['index'... | CVE-2017-14650 | {'CWE-20'} | 6.4 | {'https://github.com/horde/horde/commit/eb3afd14c22c77ae0d29e2848f5ac726ef6e7c5b'} | nvd | A Remote Code Execution vulnerability has been found in the Horde_Image library when using the "Im" backend that utilizes ImageMagick's "convert" utility. It's not exploitable through any Horde application, because the code path to the vulnerability is not used by any Horde code. Custom applications using the Horde_Ima... | 2017-09-21 | 1 | https://github.com/horde/horde | https://github.com/horde/horde/commit/eb3afd14c22c77ae0d29e2848f5ac726ef6e7c5b | eb3afd14c22c77ae0d29e2848f5ac726ef6e7c5b | SINGLE | ['eb3afd14c22c77ae0d29e2848f5ac726ef6e7c5b'] | {'f7672ebc89530aa2f201b0f9bb66c9e7477e77b1'} | eb3afd14c22c77ae0d29e2848f5ac726ef6e7c5b | 1 | 09/15/2017, 13:45:55 | Fix RCE in _raw() via $index parameter.
$index is passed down from getImageAtIndex($index).
Luckily the only official horde code calling it
is the PDF preview code with a fixed index of 0.
Still code from third party vendors using the Horde framework libs
might expose getImageAtIndex() to the web.
PoC:
------------... | Thomas Jarosch | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -198,7 +198,7 @@ private function _raw($convert = false, $options = array())\n $tmpin = $this->toFile($this->_data);\n $tmpout = Horde_Util::getTempFile('img', false, $this->_tmpdir);\n $command = $this->_convert . ... | php | CWE-20 | [
"framework/Image/lib/Horde/Image/Im.php"
] | framework/Image/lib/Horde/Image/Im.php | 1 |
static int sdp_parse_fmtp_config_h264(AVFormatContext *s, parse_profile_level_id(s, h264_data, value); } else if (!strcmp(attr, "sprop-parameter-sets")) { int ret; if (value[strlen(value) - 1] == ',') { av_log(s, AV_LOG_WARNING, "Missing PPS in sprop-parameter-sets, ignoring... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, parse_profile_level_id(s, h264_data, value); } else if (!strcmp(attr, "sprop-parameter-sets")) { int ret; if (*value == 0 || value[strlen(value) - 1] == ',') { av_log(s, AV_LOG_WARNING, "Missing PPS in sprop-parameter... | CVE-2017-14767 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/c42a1388a6d1bfd8001bf6a4241d8ca27e49326d'} | nvd | The sdp_parse_fmtp_config_h264 function in libavformat/rtpdec_h264.c in FFmpeg before 3.3.4 mishandles empty sprop-parameter-sets values, which allows remote attackers to cause a denial of service (heap buffer overflow) or possibly have unspecified other impact via a crafted sdp file. | 2017-09-27 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/c42a1388a6d1bfd8001bf6a4241d8ca27e49326d | c42a1388a6d1bfd8001bf6a4241d8ca27e49326d | SINGLE | ['c42a1388a6d1bfd8001bf6a4241d8ca27e49326d'] | {'eca2a49716ae1f42804dd3545da2f740edf03250'} | c42a1388a6d1bfd8001bf6a4241d8ca27e49326d | 1 | 08/23/2017, 19:30:37 | avformat/rtpdec_h264: Fix heap-buffer-overflow
Fixes: rtp_sdp/poc.sdp
Found-by: Bingchang <l.bing.chang.bc@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'skater2013', 'datetime': '02/27/2018, 06:29:38', 'body': "The ffmpeg 2.8.4 doesn`t have this code section, so may be it's not vulnerabled."}} | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -166,7 +166,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,\n parse_profile_level_id(s, h264_data, value);\n } else if (!strcmp(attr, \"sprop-parameter-sets\")) {\n int ret;\n- if (value[strlen... | c | CWE-119 | [
"libavformat/rtpdec_h264.c"
] | libavformat/rtpdec_h264.c | 1 |
SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, struct waitid_info info = {.status = 0}; long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); int signo = 0; if (err > 0) { signo = SIGCHLD; err = 0; } if (!err) { if (ru && copy_to_user(ru, &r, sizeof(struct rusag... | SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, struct waitid_info info = {.status = 0}; long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); int signo = 0; if (err > 0) { signo = SIGCHLD; err = 0; if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) return -... | CVE-2017-14954 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/6c85501f2fabcfc4fc6ed976543d252c4eaf4be9'} | nvd | The waitid implementation in kernel/exit.c in the Linux kernel through 4.13.4 accesses rusage data structures in unintended cases, which allows local users to obtain sensitive information, and bypass the KASLR protection mechanism, via a crafted system call. | 2017-10-02 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6c85501f2fabcfc4fc6ed976543d252c4eaf4be9 | 6c85501f2fabcfc4fc6ed976543d252c4eaf4be9 | SINGLE | ['6c85501f2fabcfc4fc6ed976543d252c4eaf4be9'] | {'b776e4b1a990045a7c70798f1f353c3160c26594'} | 6c85501f2fabcfc4fc6ed976543d252c4eaf4be9 | 1 | 09/29/2017, 17:43:15 | fix infoleak in waitid(2)
kernel_waitid() can return a PID, an error or 0. rusage is filled in the first
case and waitid(2) rusage should've been copied out exactly in that case, *not*
whenever kernel_waitid() has not returned an error. Compat variant shares that
braino; none of kernel_wait4() callers do, so the bel... | Al Viro | null | {'additions': 10, 'deletions': 13, 'total': 23} | [
{
"additions": 10,
"changes": 23,
"deletions": 13,
"patch": "@@ -1600,12 +1600,10 @@ SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *,\n \tstruct waitid_info info = {.status = 0};\n \tlong err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL);\n \tint signo = 0;\n+... | c | CWE-200 | [
"kernel/exit.c"
] | kernel/exit.c | 1 |
function parse_texte_code($texte, $code_before) } /** * */ function markup($texte) { $texte = preg_replace('#\[([^|]+)\|(\s*javascript.*)\]#i', '$1', $texte); $texte = preg_replace("/(\r\n|\r\n\r|\n|\n\r|\r)/", "\r", $texte); $tofind = array( /* regex URL */ '#([^"\[\]|])((http|ftp)s?://([^"... | function parse_texte_code($texte, $code_before) } /** * used by markup() * convert a BBCode link to HTML <a> * with a check on URL * * @params array $matches, array from preg_replace_callback * @return string */ function markup_clean_href($matches) { // var_dump($matches); $allowed = array('http://', '... | CVE-2017-14957 | {'CWE-79'} | 2.9 | {'https://github.com/BlogoText/blogotext/pull/320/commits/1a283cc8ad2cda37e0a6aff8f4558b98ecbfd9c2'} | nvd | Stored XSS vulnerability via a comment in inc/conv.php in BlogoText before 3.7.6 allows an unauthenticated attacker to inject JavaScript. If the victim is an administrator, an attacker can (for example) change global settings or create/delete posts. It is also possible to execute JavaScript against unauthenticated user... | 2017-10-02 | 1 | https://github.com/BlogoText/blogotext | https://github.com/BlogoText/blogotext/pull/320/commits/1a283cc8ad2cda37e0a6aff8f4558b98ecbfd9c2 | 1a283cc8ad2cda37e0a6aff8f4558b98ecbfd9c2 | SINGLE | ['1a283cc8ad2cda37e0a6aff8f4558b98ecbfd9c2'] | {'fc1b95de2cb553f36950a0bbfd4beb859b2b15bc'} | 1a283cc8ad2cda37e0a6aff8f4558b98ecbfd9c2 | 1 | 09/30/2017, 18:34:02 | fix comments | RemRem | null | {'additions': 40, 'deletions': 9, 'total': 49} | [
{
"additions": 40,
"changes": 49,
"deletions": 9,
"patch": "@@ -116,15 +116,44 @@ function parse_texte_code($texte, $code_before)\n }\n \n /**\n+ * used by markup()\n+ * convert a BBCode link to HTML <a>\n+ * with a check on URL\n *\n+ * @params array $matches, array from preg_replace_callback\n+ *... | php | CWE-79 | [
"inc/conv.php"
] | inc/conv.php | 1 |
} if (!$msg->containsErrors()) { $_GET['url'] = $addslashes($_GET['url']); $sql = "REPLACE INTO %sfeeds VALUES(%d, '%s')"; $result = queryDB($sql, array(TABLE_PREFIX, $feed_id, $_GET['url'])); | } if (!$msg->containsErrors()) { $_GET['url'] = htmlspecialchars(strip_tags($_GET['url']), ENT_QUOTES); $sql = "REPLACE INTO %sfeeds VALUES(%d, '%s')"; $result = queryDB($sql, array(TABLE_PREFIX, $feed_id, $_GET['url'])); | CVE-2017-14981 | {'CWE-79'} | 2.9 | {'https://github.com/atutor/ATutor/commit/9292360c8b3898d0990983269f110cef21729090'} | nvd | Cross-Site Scripting (XSS) was discovered in ATutor before 2.2.3. The vulnerability exists due to insufficient filtration of data (url in /mods/_standard/rss_feeds/edit_feed.php). An attacker could inject arbitrary HTML and script code into a browser in the context of the vulnerable website. | 2017-10-03 | 1 | https://github.com/atutor/ATutor | https://github.com/atutor/ATutor/commit/9292360c8b3898d0990983269f110cef21729090 | 9292360c8b3898d0990983269f110cef21729090 | SINGLE | ['9292360c8b3898d0990983269f110cef21729090'] | {'40ecae4cc77b70b3087e120a0e2f351e9f539b35'} | 9292360c8b3898d0990983269f110cef21729090 | 1 | 10/01/2017, 14:12:48 | 5815 added htmlspecialchars to filter URL var before going to the db. | Greg Gay | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -38,7 +38,7 @@\n \t}\n \n \tif (!$msg->containsErrors()) {\n-\t\t$_GET['url'] = $addslashes($_GET['url']);\n+ $_GET['url'] = htmlspecialchars(strip_tags($_GET['url']), ENT_QUOTES);\n \n \t\t$sql\t= \"REPLACE INTO %sfeeds VALUES(%d, ... | php | CWE-79 | [
"mods/_standard/rss_feeds/edit_feed.php"
] | mods/_standard/rss_feeds/edit_feed.php | 1 |
sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) list_for_each_entry(srp, &sfp->rq_list, entry) { if (val > SG_MAX_QUEUE) break; memset(&rinfo[val], 0, SZ_SG_REQ_INFO); rinfo[val].req_state = srp->done + 1; rinfo[val].problem = srp->header.masked_status & sg_ioctl(struct file *filp, unsigned int ... | sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) list_for_each_entry(srp, &sfp->rq_list, entry) { if (val > SG_MAX_QUEUE) break; rinfo[val].req_state = srp->done + 1; rinfo[val].problem = srp->header.masked_status & sg_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg) else { sg_... | CVE-2017-14991 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/3e0097499839e0fe3af380410eababe5a47c4cf9'} | nvd | The sg_ioctl function in drivers/scsi/sg.c in the Linux kernel before 4.13.4 allows local users to obtain sensitive information from uninitialized kernel heap-memory locations via an SG_GET_REQUEST_TABLE ioctl call for /dev/sg0. | 2017-10-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3e0097499839e0fe3af380410eababe5a47c4cf9 | 3e0097499839e0fe3af380410eababe5a47c4cf9 | SINGLE | ['3e0097499839e0fe3af380410eababe5a47c4cf9'] | {'4759df905a474d245752c9dc94288e779b8734dd'} | 3e0097499839e0fe3af380410eababe5a47c4cf9 | 1 | 09/15/2017, 12:05:16 | scsi: sg: fixup infoleak when using SG_GET_REQUEST_TABLE
When calling SG_GET_REQUEST_TABLE ioctl only a half-filled table is
returned; the remaining part will then contain stale kernel memory
information. This patch zeroes out the entire table to avoid this
issue.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Revie... | Hannes Reinecke | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -839,7 +839,6 @@ sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo)\n \tlist_for_each_entry(srp, &sfp->rq_list, entry) {\n \t\tif (val > SG_MAX_QUEUE)\n \t\t\tbreak;\n-\t\tmemset(&rinfo[val], 0, SZ_SG_REQ_INFO);\n \t\trinfo[val].req_s... | c | CWE-200 | [
"drivers/scsi/sg.c"
] | drivers/scsi/sg.c | 1 |
crypto_retrieve_X509_key_usage(krb5_context context, return retval; } /* * Return a string format of an X509_NAME in buf where * size is an in/out parameter. On input it is the size * of the buffer, and on output it is the actual length * of the name. * If buf is NULL, returns the length req'd to hold name ... | crypto_retrieve_X509_key_usage(krb5_context context, return retval; } static krb5_error_code rfc2253_name(X509_NAME *name, char **str_out) { BIO *b = NULL; char *str; *str_out = NULL; b = BIO_new(BIO_s_mem()); if (b == NULL) return ENOMEM; if (X509_NAME_print_ex(b, name, 0, XN_FLA... | CVE-2017-15088 | {'CWE-119'} | 6.4 | {'https://github.com/krb5/krb5/commit/fbb687db1088ddd894d975996e5f6a4252b9a2b4'} | nvd | plugins/preauth/pkinit/pkinit_crypto_openssl.c in MIT Kerberos 5 (aka krb5) through 1.15.2 mishandles Distinguished Name (DN) fields, which allows remote attackers to execute arbitrary code or cause a denial of service (buffer overflow and application crash) in situations involving untrusted X.509 data, related to the ... | 2017-11-23 | 1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/fbb687db1088ddd894d975996e5f6a4252b9a2b4 | fbb687db1088ddd894d975996e5f6a4252b9a2b4 | SINGLE | ['fbb687db1088ddd894d975996e5f6a4252b9a2b4'] | {'e4ffb911497ecd3348c89fb459cc8ccae40bfe42'} | fbb687db1088ddd894d975996e5f6a4252b9a2b4 | 1 | 10/17/2017, 22:50:15 | Fix PKINIT cert matching data construction
Rewrite X509_NAME_oneline_ex() and its call sites to use dynamic
allocation and to perform proper error checking.
ticket: 8617
target_version: 1.16
target_version: 1.15-next
target_version: 1.14-next
tags: pullup | Greg Hudson | null | {'additions': 25, 'deletions': 42, 'total': 67} | [
{
"additions": 25,
"changes": 67,
"deletions": 42,
"patch": "@@ -5002,33 +5002,29 @@ crypto_retrieve_X509_key_usage(krb5_context context,\n return retval;\n }\n \n-/*\n- * Return a string format of an X509_NAME in buf where\n- * size is an in/out parameter. On input it is the size\n- * of the b... | c | CWE-119 | [
"src/plugins/preauth/pkinit/pkinit_crypto_openssl.c"
] | src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 1 |
static int tower_probe (struct usb_interface *interface, const struct usb_device dev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; dev->interrupt_out_interval = interrupt_out_interval ? interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; ... | static int tower_probe (struct usb_interface *interface, const struct usb_device dev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval; dev->interrupt_out_interval = interrupt_out_interval ? interrupt_out_interval : dev->interrupt_out_endpoint->bInterval; ... | CVE-2017-15102 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/2fae9e5a7babada041e2e161699ade2447a01989'} | nvd | The tower_probe function in drivers/usb/misc/legousbtower.c in the Linux kernel before 4.8.1 allows local users (who are physically proximate for inserting a crafted USB device) to gain privileges by leveraging a write-what-where condition that occurs after a race condition and a NULL pointer dereference. | 2017-11-15 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2fae9e5a7babada041e2e161699ade2447a01989 | 2fae9e5a7babada041e2e161699ade2447a01989 | SINGLE | ['2fae9e5a7babada041e2e161699ade2447a01989'] | {'2ad9d544f2497a7bf239c34bd2b86fd19683dbb5'} | 2fae9e5a7babada041e2e161699ade2447a01989 | 1 | 09/19/2016, 18:09:51 | usb: misc: legousbtower: Fix NULL pointer deference
This patch fixes a NULL pointer dereference caused by a race codition in
the probe function of the legousbtower driver. It re-structures the
probe function to only register the interface after successfully reading
the board's firmware ID.
The probe function does not... | Greg Kroah-Hartman | null | {'additions': 17, 'deletions': 18, 'total': 35} | [
{
"additions": 17,
"changes": 35,
"deletions": 18,
"patch": "@@ -886,24 +886,6 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device\n \tdev->interrupt_in_interval = interrupt_in_interval ? interrupt_in_interval : dev->interrupt_in_endpoint->bInterval;\n \tdev->interrup... | c | CWE-476 | [
"drivers/usb/misc/legousbtower.c"
] | drivers/usb/misc/legousbtower.c | 1 |
int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp) struct socket *sock; int err = 0; if (!asoc) return -EINVAL; | int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp) struct socket *sock; int err = 0; /* Do not peel off from one netns to another one. */ if (!net_eq(current->nsproxy->net_ns, sock_net(sk))) return -EINVAL; if (!asoc) return -EINVAL; | CVE-2017-15115 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/df80cd9b28b9ebaa284a41df611dbf3a2d05ca74'} | nvd | The sctp_do_peeloff function in net/sctp/socket.c in the Linux kernel before 4.14 does not check whether the intended netns is used in a peel-off action, which allows local users to cause a denial of service (use-after-free and system crash) or possibly have unspecified other impact via crafted system calls. | 2017-11-15 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/df80cd9b28b9ebaa284a41df611dbf3a2d05ca74 | df80cd9b28b9ebaa284a41df611dbf3a2d05ca74 | SINGLE | ['df80cd9b28b9ebaa284a41df611dbf3a2d05ca74'] | {'4bbb5083484016d4448739237aa1e6a9577ebb43'} | df80cd9b28b9ebaa284a41df611dbf3a2d05ca74 | 1 | 10/17/2017, 15:26:10 | sctp: do not peel off an assoc from one netns to another one
Now when peeling off an association to the sock in another netns, all
transports in this assoc are not to be rehashed and keep use the old
key in hashtable.
As a transport uses sk->net as the hash key to insert into hashtable,
it would miss removing these t... | Xin Long | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -4906,6 +4906,10 @@ int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp)\n \tstruct socket *sock;\n \tint err = 0;\n \n+\t/* Do not peel off from one netns to another one. */\n+\tif (!net_eq(current->nsproxy->net_ns... | c | CWE-416 | [
"net/sctp/socket.c"
] | net/sctp/socket.c | 1 |
static void userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx, break; if (ACCESS_ONCE(ctx->released) || fatal_signal_pending(current)) { __remove_wait_queue(&ctx->event_wqh, &ewq->wq); if (ewq->msg.event == UFFD_EVENT_FORK) { struct userfaultfd_ctx *new; static ssize_t userfaultfd_ctx_... | static void userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx, break; if (ACCESS_ONCE(ctx->released) || fatal_signal_pending(current)) { /* * &ewq->wq may be queued in fork_event, but * __remove_wait_queue ignores the head * parameter. It would be a problem if it * didn't. ... | CVE-2017-15126 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/384632e67e0829deb8015ee6ad916b180049d252'} | nvd | A use-after-free flaw was found in fs/userfaultfd.c in the Linux kernel before 4.13.6. The issue is related to the handling of fork failure when dealing with event messages. Failure to fork correctly can lead to a situation where a fork event will be removed from an already freed list of events with userfaultfd_ctx_put... | 2018-01-14 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/384632e67e0829deb8015ee6ad916b180049d252 | 384632e67e0829deb8015ee6ad916b180049d252 | SINGLE | ['384632e67e0829deb8015ee6ad916b180049d252'] | {'7d790d2da386a52cfebcf0c898ba927bece9d4ab'} | 384632e67e0829deb8015ee6ad916b180049d252 | 1 | 10/03/2017, 23:15:38 | userfaultfd: non-cooperative: fix fork use after free
When reading the event from the uffd, we put it on a temporary
fork_event list to detect if we can still access it after releasing and
retaking the event_wqh.lock.
If fork aborts and removes the event from the fork_event all is fine as
long as we're still in the u... | Andrea Arcangeli | null | {'additions': 56, 'deletions': 10, 'total': 66} | [
{
"additions": 56,
"changes": 66,
"deletions": 10,
"patch": "@@ -588,6 +588,12 @@ static void userfaultfd_event_wait_completion(struct userfaultfd_ctx *ctx,\n \t\t\tbreak;\n \t\tif (ACCESS_ONCE(ctx->released) ||\n \t\t fatal_signal_pending(current)) {\n+\t\t\t/*\n+\t\t\t * &ewq->wq may be queued ... | c | CWE-416 | [
"fs/userfaultfd.c"
] | fs/userfaultfd.c | 1 |
int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, unsigned long src_addr, struct page **pagep) { int vm_shared = dst_vma->vm_flags & VM_SHARED; struct hstate *h = hstate_vma(dst_vma); pte_t _dst_pte; int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, __SetPageUptodate(page); set_page_huge_a... | int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, unsigned long src_addr, struct page **pagep) { struct address_space *mapping; pgoff_t idx; unsigned long size; int vm_shared = dst_vma->vm_flags & VM_SHARED; struct hstate *h = hstate_vma(dst_vma); pte_t _dst_pte; int hugetlb_mcopy_atomic_pte(s... | CVE-2017-15128 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/1e3921471354244f70fe268586ff94a97a6dd4df'} | nvd | A flaw was found in the hugetlb_mcopy_atomic_pte function in mm/hugetlb.c in the Linux kernel before 4.13.12. A lack of size check could cause a denial of service (BUG). | 2018-01-14 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1e3921471354244f70fe268586ff94a97a6dd4df | 1e3921471354244f70fe268586ff94a97a6dd4df | SINGLE | ['1e3921471354244f70fe268586ff94a97a6dd4df'] | {'5cb0512c02ecd7e6214e912e4c150f4219ac78e0'} | 1e3921471354244f70fe268586ff94a97a6dd4df | 1 | 11/02/2017, 22:59:29 | userfaultfd: hugetlbfs: prevent UFFDIO_COPY to fill beyond the end of i_size
This oops:
kernel BUG at fs/hugetlbfs/inode.c:484!
RIP: remove_inode_hugepages+0x3d0/0x410
Call Trace:
hugetlbfs_setattr+0xd9/0x130
notify_change+0x292/0x410
do_truncate+0x65/0xa0
do_sys_ftruncate.constprop.3+0x11a/0x18... | Andrea Arcangeli | null | {'additions': 30, 'deletions': 2, 'total': 32} | [
{
"additions": 30,
"changes": 32,
"deletions": 2,
"patch": "@@ -3984,6 +3984,9 @@ int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm,\n \t\t\t unsigned long src_addr,\n \t\t\t struct page **pagep)\n {\n+\tstruct address_space *mapping;\n+\tpgoff_t idx;\n+\tunsigned long size;\n \tint vm_sha... | c | CWE-119 | [
"mm/hugetlb.c"
] | mm/hugetlb.c | 1 |
struct net *get_net_ns_by_id(struct net *net, int id) spin_lock_bh(&net->nsid_lock); peer = idr_find(&net->netns_ids, id); if (peer) get_net(peer); spin_unlock_bh(&net->nsid_lock); rcu_read_unlock(); | struct net *get_net_ns_by_id(struct net *net, int id) spin_lock_bh(&net->nsid_lock); peer = idr_find(&net->netns_ids, id); if (peer) peer = maybe_get_net(peer); spin_unlock_bh(&net->nsid_lock); rcu_read_unlock(); | CVE-2017-15129 | {'CWE-416'} | 6.9 | {'https://github.com/torvalds/linux/commit/21b5944350052d2583e82dd59b19a9ba94a007f0'} | nvd | A use-after-free vulnerability was found in network namespaces code affecting the Linux kernel before 4.14.11. The function get_net_ns_by_id() in net/core/net_namespace.c does not check for the net::count value after it has found a peer network in netns_ids idr, which could lead to double free and memory corruption. Th... | 2018-01-09 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/21b5944350052d2583e82dd59b19a9ba94a007f0 | 21b5944350052d2583e82dd59b19a9ba94a007f0 | SINGLE | ['21b5944350052d2583e82dd59b19a9ba94a007f0'] | {'eda9873e19d83c68d0c477f6bc13718fee7a7b3c'} | 21b5944350052d2583e82dd59b19a9ba94a007f0 | 1 | 12/19/2017, 17:27:56 | net: Fix double free and memory corruption in get_net_ns_by_id()
(I can trivially verify that that idr_remove in cleanup_net happens
after the network namespace count has dropped to zero --EWB)
Function get_net_ns_by_id() does not check for net::count
after it has found a peer in netns_ids idr.
It may dereference a... | Eric W. Biederman | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -267,7 +267,7 @@ struct net *get_net_ns_by_id(struct net *net, int id)\n \tspin_lock_bh(&net->nsid_lock);\n \tpeer = idr_find(&net->netns_ids, id);\n \tif (peer)\n-\t\tget_net(peer);\n+\t\tpeer = maybe_get_net(peer);\n \tspin_unlock_bh(&ne... | c | CWE-416 | [
"net/core/net_namespace.c"
] | net/core/net_namespace.c | 1 |
var cactiVersion='<?php print $config['cacti_version'];?>'; var theme='<?php print get_selected_theme();?>'; var refreshIsLogout=<?php print $refreshIsLogout;?>; var refreshPage='<?php print $myrefresh['page'];?>'; var refreshMSeconds=<?php print $myrefresh['seconds']*1000;?>; var urlPath='<?php print $config['u... | var cactiVersion='<?php print $config['cacti_version'];?>'; var theme='<?php print get_selected_theme();?>'; var refreshIsLogout=<?php print $refreshIsLogout;?>; var refreshPage='<?php print htmlspecialchars($myrefresh['page']);?>'; var refreshMSeconds=<?php print $myrefresh['seconds']*1000;?>; var urlPath='<?ph... | CVE-2017-15194 | {'CWE-79'} | 2.9 | {'https://github.com/Cacti/cacti/commit/93f661d8adcfa6618b11522cdab30e97bada33fd'} | nvd | include/global_session.php in Cacti 1.1.25 has XSS related to (1) the URI or (2) the refresh page. | 2017-10-11 | 1 | https://github.com/Cacti/cacti | https://github.com/Cacti/cacti/commit/93f661d8adcfa6618b11522cdab30e97bada33fd | 93f661d8adcfa6618b11522cdab30e97bada33fd | SINGLE | ['93f661d8adcfa6618b11522cdab30e97bada33fd'] | {'954fc09c731f44906ce0477241cac19daf378287'} | 93f661d8adcfa6618b11522cdab30e97bada33fd | 1 | 10/07/2017, 15:59:17 | XSS fix (#1017)
Fix for issue #1010 | Patrick | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -84,11 +84,11 @@\n \tvar cactiVersion='<?php print $config['cacti_version'];?>';\n \tvar theme='<?php print get_selected_theme();?>';\n \tvar refreshIsLogout=<?php print $refreshIsLogout;?>;\n-\tvar refreshPage='<?php print $myrefresh['pag... | php | CWE-79 | [
"include/global_session.php"
] | include/global_session.php | 1 |
protected function getFile() { $task_id = $this->request->getIntegerParam('task_id'); $file_id = $this->request->getIntegerParam('file_id'); $model = 'projectFileModel'; if ($task_id > 0) { $model = 'taskFileModel'; $project_id = $this->taskFinderModel->getP... | protected function getFile() { $task_id = $this->request->getIntegerParam('task_id'); $file_id = $this->request->getIntegerParam('file_id'); $project_id = $this->request->getIntegerParam('project_id'); $model = 'projectFileModel'; if ($task_id > 0) { $model = 't... | CVE-2017-15205 | {'CWE-200'} | 2.9 | {'https://github.com/kanboard/kanboard/commit/7100f6de8a1f566e260b3e65312767e4cde112b1'} | nvd | In Kanboard before 1.0.47, by altering form data, an authenticated user can download attachments from a private project of another user. | 2017-10-11 | 1 | https://github.com/kanboard/kanboard | https://github.com/kanboard/kanboard/commit/7100f6de8a1f566e260b3e65312767e4cde112b1 | 7100f6de8a1f566e260b3e65312767e4cde112b1 | SINGLE | ['7100f6de8a1f566e260b3e65312767e4cde112b1'] | {'ac795d9a5804204475bf62bcca03ee0815a92e6a'} | 7100f6de8a1f566e260b3e65312767e4cde112b1 | 1 | 09/28/2017, 04:58:16 | Make sure people do not access to files of other projects | Frederic Guillot | null | {'additions': 9, 'deletions': 2, 'total': 11} | [
{
"additions": 9,
"changes": 11,
"deletions": 2,
"patch": "@@ -74,13 +74,14 @@ protected function getFile()\n {\n $task_id = $this->request->getIntegerParam('task_id');\n $file_id = $this->request->getIntegerParam('file_id');\n+ $project_id = $this->request->getIntegerPara... | php | CWE-200 | [
"app/Controller/BaseController.php"
] | app/Controller/BaseController.php | 1 |
function render($mode, &$renderer, $data) { $link['more'] = ''; $link['class'] = 'internallink'; $link['url'] = DOKU_INTERNAL_LINK . $id; $link['name'] = ($name) ? $name : $id; $link['title'] = ($name) ? $name : $id; //add search string ... | function render($mode, &$renderer, $data) { $link['more'] = ''; $link['class'] = 'internallink'; $link['url'] = DOKU_INTERNAL_LINK . $id; if(is_array($name)){ $link['name'] = (isset($name['title'])) ? hsc($name['title']) : hsc($id); ... | CVE-2017-15214 | {'CWE-79'} | 2.9 | {'https://github.com/Flyspray/flyspray/commit/00cfae5661124f9d67ac6733db61b2bfee34dccc'} | nvd | Stored XSS vulnerability in Flyspray 1.0-rc4 before 1.0-rc6 allows an authenticated user to inject JavaScript to gain administrator privileges and also to execute JavaScript against other users (including unauthenticated users), via the name, title, or id parameter to plugins/dokuwiki/lib/plugins/changelinks/syntax.php... | 2017-10-11 | 1 | https://github.com/Flyspray/flyspray | https://github.com/Flyspray/flyspray/commit/00cfae5661124f9d67ac6733db61b2bfee34dccc | 00cfae5661124f9d67ac6733db61b2bfee34dccc | SINGLE | ['00cfae5661124f9d67ac6733db61b2bfee34dccc'] | {'c2999791c32a3d20a3e0773abdd0b9052fb786c7'} | 00cfae5661124f9d67ac6733db61b2bfee34dccc | 1 | 09/12/2017, 22:25:27 | quickfix for dokuwiki links | peterdd | null | {'additions': 10, 'deletions': 3, 'total': 13} | [
{
"additions": 10,
"changes": 13,
"deletions": 3,
"patch": "@@ -130,8 +130,15 @@ function render($mode, &$renderer, $data) {\n $link['more'] = '';\n $link['class'] = 'internallink';\n $link['url'] = DOKU_INTERNAL_LINK . $id;\n- $link['name'] = (... | php | CWE-79 | [
"plugins/dokuwiki/lib/plugins/changelinks/syntax.php"
] | plugins/dokuwiki/lib/plugins/changelinks/syntax.php | 1 |
SYSCALL_DEFINE5(add_key, const char __user *, _type, /* pull the payload in if one was supplied */ payload = NULL; if (_payload) { ret = -ENOMEM; payload = kvmalloc(plen, GFP_KERNEL); if (!payload) long keyctl_update_key(key_serial_t id, /* pull the payload in if one was supplied */ payload = NULL; if (_... | SYSCALL_DEFINE5(add_key, const char __user *, _type, /* pull the payload in if one was supplied */ payload = NULL; if (plen) { ret = -ENOMEM; payload = kvmalloc(plen, GFP_KERNEL); if (!payload) long keyctl_update_key(key_serial_t id, /* pull the payload in if one was supplied */ payload = NULL; if (plen)... | CVE-2017-15274 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/5649645d725c73df4302428ee4e02c869248b4c5'} | nvd | security/keys/keyctl.c in the Linux kernel before 4.11.5 does not consider the case of a NULL payload in conjunction with a nonzero length value, which allows local users to cause a denial of service (NULL pointer dereference and OOPS) via a crafted add_key or keyctl system call, a different vulnerability than CVE-2017... | 2017-10-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5649645d725c73df4302428ee4e02c869248b4c5 | 5649645d725c73df4302428ee4e02c869248b4c5 | SINGLE | ['5649645d725c73df4302428ee4e02c869248b4c5'] | {'0f534e4a13496b02ae284f50fcb0263f6ea37007'} | 5649645d725c73df4302428ee4e02c869248b4c5 | 1 | 06/08/2017, 13:48:40 | KEYS: fix dereferencing NULL payload with nonzero length
sys_add_key() and the KEYCTL_UPDATE operation of sys_keyctl() allowed a
NULL payload with nonzero length to be passed to the key type's
->preparse(), ->instantiate(), and/or ->update() methods. Various key
types including asymmetric, cifs.idmap, cifs.spnego, an... | Eric Biggers | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -99,7 +99,7 @@ SYSCALL_DEFINE5(add_key, const char __user *, _type,\n \t/* pull the payload in if one was supplied */\n \tpayload = NULL;\n \n-\tif (_payload) {\n+\tif (plen) {\n \t\tret = -ENOMEM;\n \t\tpayload = kvmalloc(plen, GFP_KERNEL... | c | CWE-476 | [
"security/keys/keyctl.c"
] | security/keys/keyctl.c | 1 |
static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) MagickMax(global_colors,256),3UL*sizeof(*global_colormap)); if (global_colormap == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); if (BitSet((int) flag,0x80) != 0) { count=... | static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) MagickMax(global_colors,256),3UL*sizeof(*global_colormap)); if (global_colormap == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); (void) ResetMagickMemory(global_colormap,0,3*MagickM... | CVE-2017-15277 | {'CWE-200'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/9fd10cf630832b36a588c1545d8736539b2f1fb5'} | nvd | ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when processing a GIF file that has neither a global nor local palette. If the affected product is used as a library loaded into a process that operates on interesting data, this data sometimes can be leaked v... | 2017-10-12 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/9fd10cf630832b36a588c1545d8736539b2f1fb5 | 9fd10cf630832b36a588c1545d8736539b2f1fb5 | SINGLE | ['9fd10cf630832b36a588c1545d8736539b2f1fb5'] | {'387eb53ff6c991d5c17e6769f30a0961af77e73b'} | 9fd10cf630832b36a588c1545d8736539b2f1fb5 | 1 | 07/21/2017, 11:54:50 | https://github.com/ImageMagick/ImageMagick/issues/592 | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -1018,6 +1018,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)\n MagickMax(global_colors,256),3UL*sizeof(*global_colormap));\n if (global_colormap == (unsigned char *) NULL)\n ThrowReaderExcep... | c | CWE-200 | [
"coders/gif.c"
] | coders/gif.c | 1 |
protected function imageExtensions() 'bmp', 'png', 'webp', 'gif', 'svg' ]; } | protected function imageExtensions() 'bmp', 'png', 'webp', 'gif' ]; } | CVE-2017-15284 | {'CWE-79'} | 2.9 | {'https://github.com/octobercms/library/commit/3bbbbf3da469f457881b5af902eb0b89b95189a2'} | nvd | Cross-Site Scripting exists in OctoberCMS 1.0.425 (aka Build 425), allowing a least privileged user to upload an SVG file containing malicious code as the Avatar for the profile. When this is opened by the Admin, it causes JavaScript execution in the context of the Admin account. | 2017-10-12 | 1 | https://github.com/octobercms/library | https://github.com/octobercms/library/commit/3bbbbf3da469f457881b5af902eb0b89b95189a2 | 3bbbbf3da469f457881b5af902eb0b89b95189a2 | SINGLE | ['3bbbbf3da469f457881b5af902eb0b89b95189a2'] | {'7900807b5e93f171ace6c181d661b6e88be8317a'} | 3bbbbf3da469f457881b5af902eb0b89b95189a2 | 1 | 10/09/2017, 23:12:33 | Remove SVG from image types
SVG files should not be treated as images - especially when coming to uploads. An SVG file can contain arbitrary HTML data as well as event handlers in native elements
Refs: https://html5sec.org/#svg
Original report by: Ishaq Mohammed | Samuel Georges | {'com_1': {'author': 'datune', 'datetime': '10/19/2017, 17:58:01', 'body': "This is only half the story.\r\n\r\n**[SVG files displayed with < image > are treated as an image: external resources aren't loaded, :visited styles aren't applied, and they cannot be interactive.](https://developer.mozilla.org/en-US/docs/Web/S... | {'additions': 1, 'deletions': 2, 'total': 3} | [
{
"additions": 1,
"changes": 3,
"deletions": 2,
"patch": "@@ -182,8 +182,7 @@ protected function imageExtensions()\n 'bmp',\n 'png',\n 'webp',\n- 'gif',\n- 'svg'\n+ 'gif'\n ];\n }",
"path": "src/Filesystem/Definitio... | php | CWE-79 | [
"src/Filesystem/Definitions.php"
] | src/Filesystem/Definitions.php | 1 |
int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) break; #endif case KVM_CAP_PPC_HTM: r = cpu_has_feature(CPU_FTR_TM_COMP) && is_kvmppc_hv_enabled(kvm); break; default: r = 0; | int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) break; #endif case KVM_CAP_PPC_HTM: r = cpu_has_feature(CPU_FTR_TM_COMP) && hv_enabled; break; default: r = 0; | CVE-2017-15306 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/ac64115a66c18c01745bbd3c47a36b124e5fd8c0'} | nvd | The kvm_vm_ioctl_check_extension function in arch/powerpc/kvm/powerpc.c in the Linux kernel before 4.13.11 allows local users to cause a denial of service (NULL pointer dereference and system crash) via a KVM_CHECK_EXTENSION KVM_CAP_PPC_HTM ioctl call to /dev/kvm. | 2017-11-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ac64115a66c18c01745bbd3c47a36b124e5fd8c0 | ac64115a66c18c01745bbd3c47a36b124e5fd8c0 | SINGLE | ['ac64115a66c18c01745bbd3c47a36b124e5fd8c0'] | {'8a5776a5f49812d29fe4b2d0a2d71675c3facf3f'} | ac64115a66c18c01745bbd3c47a36b124e5fd8c0 | 1 | 09/14/2017, 21:56:25 | KVM: PPC: Fix oops when checking KVM_CAP_PPC_HTM
The following program causes a kernel oops:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/kvm.h>
main()
{
int fd = open("/dev/kvm", O_RDWR);
ioctl(fd, KVM_CHECK_EXTENSION, KVM_CAP_PPC_HTM);
}
This happe... | Greg Kurz | null | {'additions': 1, 'deletions': 2, 'total': 3} | [
{
"additions": 1,
"changes": 3,
"deletions": 2,
"patch": "@@ -644,8 +644,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)\n \t\tbreak;\n #endif\n \tcase KVM_CAP_PPC_HTM:\n-\t\tr = cpu_has_feature(CPU_FTR_TM_COMP) &&\n-\t\t is_kvmppc_hv_enabled(kvm);\n+\t\tr = cpu_has_feature(CPU_F... | c | CWE-476 | [
"arch/powerpc/kvm/powerpc.c"
] | arch/powerpc/kvm/powerpc.c | 1 |
$period = CHttpRequest::get_Value('period'); $view->assign( 'no_report_options', 'false'); // Client informations | $period = CHttpRequest::get_Value('period'); // Check if period is an integer and listed in known periods if(!array_key_exists( $period, $periods_list)) { throw new Exception('Critical: provided value for (period) is unknown or not valid'); } if(!filter_var($period, FILT... | CVE-2017-15367 | {'CWE-89'} | 6.4 | {'https://github.com/bacula-web/bacula-web/commit/90d4c44a0dd0d65c6fb3ab2417b83d700c8413ae'} | nvd | Bacula-web before 8.0.0-rc2 is affected by multiple SQL Injection vulnerabilities that could allow an attacker to access the Bacula database and, depending on configuration, escalate privileges on the server. | 2018-03-07 | 1 | https://github.com/bacula-web/bacula-web | https://github.com/bacula-web/bacula-web/commit/90d4c44a0dd0d65c6fb3ab2417b83d700c8413ae | 90d4c44a0dd0d65c6fb3ab2417b83d700c8413ae | SINGLE | ['90d4c44a0dd0d65c6fb3ab2417b83d700c8413ae'] | {'2349d14c91d5391d5e6d0618c94dc51c54fe3ff6'} | 90d4c44a0dd0d65c6fb3ab2417b83d700c8413ae | 1 | 09/25/2017, 06:58:16 | Ensure provided period is a valid integer and a known value
- if provided period is not an integer or a known value, we
raise an exception | Davide Franco | null | {'additions': 9, 'deletions': 0, 'total': 9} | [
{
"additions": 9,
"changes": 9,
"deletions": 0,
"patch": "@@ -64,6 +64,15 @@\n \n $period = CHttpRequest::get_Value('period');\n \n+ // Check if period is an integer and listed in known periods\n+ if(!array_key_exists( $period, $periods_list)) {\n+ throw new Exception('Cr... | php | CWE-89 | [
"client-report.php"
] | client-report.php | 1 |
static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) sdb_num_set (sdb, "link", shdr->sh_link, 0); sdb_set (sdb, "link_section_name", link_section_name, 0); for (cnt = 0, i = 0; cnt < shdr->sh_info && ((char *)defs + i < end); ++cnt) { Sdb *sdb_verdef = sdb_new0 (); char *vstart = ((c... | static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) sdb_num_set (sdb, "link", shdr->sh_link, 0); sdb_set (sdb, "link_section_name", link_section_name, 0); for (cnt = 0, i = 0; i >= 0 && cnt < shdr->sh_info && ((char *)defs + i < end); ++cnt) { Sdb *sdb_verdef = sdb_new0 (); char *vs... | CVE-2017-15385 | {'CWE-119'} | 6.4 | {'https://github.com/radare/radare2/commit/21a6f570ba33fa9f52f1bba87f07acc4e8c178f4'} | nvd | The store_versioninfo_gnu_verdef function in libr/bin/format/elf/elf.c in radare2 2.0.0 allows remote attackers to cause a denial of service (r_read_le16 invalid write and application crash) or possibly have unspecified other impact via a crafted ELF file. | 2017-10-16 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/21a6f570ba33fa9f52f1bba87f07acc4e8c178f4 | 21a6f570ba33fa9f52f1bba87f07acc4e8c178f4 | SINGLE | ['21a6f570ba33fa9f52f1bba87f07acc4e8c178f4'] | {'7ca83c40fac0b047a822ec73634a61547c483d21'} | 21a6f570ba33fa9f52f1bba87f07acc4e8c178f4 | 1 | 10/14/2017, 16:35:39 | Fix #8685 - Crash in ELF version parsing | pancake | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -731,7 +731,7 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)\n \tsdb_num_set (sdb, \"link\", shdr->sh_link, 0);\n \tsdb_set (sdb, \"link_section_name\", link_section_name, 0);\n \n-\tfor (cnt = 0, i = 0;... | c | CWE-119 | [
"libr/bin/format/elf/elf.c"
] | libr/bin/format/elf/elf.c | 1 |
function getHAlign() */ function setParameter($a_name, $a_value) { $this->parameters[$a_name] = $a_value; } /** function setParameters($a_par) } } /** * get all parameters (in array) | function getHAlign() */ function setParameter($a_name, $a_value) { if ($this->checkParameter($a_name, $a_value)) { $this->parameters[$a_name] = $a_value; } } /** function setParameters($a_par) } } /** * Check parameter (filter javascript related and other unsafe parameters/values) * * @param ... | CVE-2017-15538 | {'CWE-79'} | 2.9 | {'https://github.com/ILIAS-eLearning/ILIAS/commit/b2a4660afec1e87d41c83c8e381f549bc6dfc70f'} | nvd | Stored XSS vulnerability in the Media Objects component of ILIAS before 5.1.21 and 5.2.x before 5.2.9 allows an authenticated user to inject JavaScript to gain administrator privileges, related to the setParameter function in Services/MediaObjects/classes/class.ilMediaItem.php. | 2017-10-17 | 1 | https://github.com/ILIAS-eLearning/ILIAS | https://github.com/ILIAS-eLearning/ILIAS/commit/b2a4660afec1e87d41c83c8e381f549bc6dfc70f | b2a4660afec1e87d41c83c8e381f549bc6dfc70f | SINGLE | ['b2a4660afec1e87d41c83c8e381f549bc6dfc70f'] | {'d9fe9b49af5d12cca23aa1f065eecb185b39c5d0'} | b2a4660afec1e87d41c83c8e381f549bc6dfc70f | 1 | 10/11/2017, 13:07:28 | fixed bug #0021435 | Alexander Killing | null | {'additions': 32, 'deletions': 1, 'total': 33} | [
{
"additions": 32,
"changes": 33,
"deletions": 1,
"patch": "@@ -671,7 +671,10 @@ function getHAlign()\n \t*/\n \tfunction setParameter($a_name, $a_value)\n \t{\n-\t\t$this->parameters[$a_name] = $a_value;\n+\t\tif ($this->checkParameter($a_name, $a_value))\n+\t\t{\n+\t\t\t$this->parameters[$a_name] ... | php | CWE-79 | [
"Services/MediaObjects/classes/class.ilMediaItem.php"
] | Services/MediaObjects/classes/class.ilMediaItem.php | 1 |
def format_object(object, html=true, &block) end case object.class.name when 'Array' object.map {|o| format_object(o, html)}.join(', ').html_safe when 'Time' format_time(object) when 'Date' | def format_object(object, html=true, &block) end case object.class.name when 'Array' formatted_objects = object.map {|o| format_object(o, html)} html ? safe_join(formatted_objects, ', ') : formatted_objects.join(', ') when 'Time' format_time(object) when 'Date' | CVE-2017-15568 | {'CWE-79'} | 2.9 | {'https://github.com/redmine/redmine/commit/94f7cfbf990028348b9262578acbc53a94fce448'} | nvd | In Redmine before 3.2.8, 3.3.x before 3.3.5, and 3.4.x before 3.4.3, XSS exists in app/helpers/application_helper.rb via a multi-value field with a crafted value that is mishandled during rendering of issue history. | 2017-10-18 | 1 | https://github.com/redmine/redmine | https://github.com/redmine/redmine/commit/94f7cfbf990028348b9262578acbc53a94fce448 | 94f7cfbf990028348b9262578acbc53a94fce448 | SINGLE | ['94f7cfbf990028348b9262578acbc53a94fce448'] | {'56c8ee0440d8555aa7822d947ba9091c8a791508'} | 94f7cfbf990028348b9262578acbc53a94fce448 | 1 | 10/15/2017, 11:09:43 | Ensure that values of multi-value fields are HTML-escaped in issue history (#27186).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16985 e93f8b46-1217-0410-a6f0-8f06a7374b81 | Jean-Philippe Lang | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -177,7 +177,8 @@ def format_object(object, html=true, &block)\n end\n case object.class.name\n when 'Array'\n- object.map {|o| format_object(o, html)}.join(', ').html_safe\n+ formatted_objects = object.map {|o| format... | rb | CWE-79 | [
"app/helpers/application_helper.rb"
] | app/helpers/application_helper.rb | 1 |
def column_header(query, column, options={}) def column_content(column, item) value = column.value_object(item) if value.is_a?(Array) value.collect {|v| column_value(column, item, v)}.compact.join(', ').html_safe else column_value(column, item, value) end | def column_header(query, column, options={}) def column_content(column, item) value = column.value_object(item) if value.is_a?(Array) values = value.collect {|v| column_value(column, item, v)}.compact safe_join(values, ', ') else column_value(column, item, value) end | CVE-2017-15569 | {'CWE-79'} | 2.9 | {'https://github.com/redmine/redmine/commit/56c8ee0440d8555aa7822d947ba9091c8a791508'} | nvd | In Redmine before 3.2.8, 3.3.x before 3.3.5, and 3.4.x before 3.4.3, XSS exists in app/helpers/queries_helper.rb via a multi-value field with a crafted value that is mishandled during rendering of an issue list. | 2017-10-18 | 1 | https://github.com/redmine/redmine | https://github.com/redmine/redmine/commit/56c8ee0440d8555aa7822d947ba9091c8a791508 | 56c8ee0440d8555aa7822d947ba9091c8a791508 | SINGLE | ['56c8ee0440d8555aa7822d947ba9091c8a791508'] | {'1a0976417975a128b0a932ba1552c37e9414953b'} | 56c8ee0440d8555aa7822d947ba9091c8a791508 | 1 | 10/15/2017, 11:08:46 | Ensure that values of multi-value fields are HTML-escaped in issue list (#27186).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16984 e93f8b46-1217-0410-a6f0-8f06a7374b81 | Jean-Philippe Lang | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -201,7 +201,8 @@ def column_header(query, column, options={})\n def column_content(column, item)\n value = column.value_object(item)\n if value.is_a?(Array)\n- value.collect {|v| column_value(column, item, v)}.compact.join('... | rb | CWE-79 | [
"app/helpers/queries_helper.rb"
] | app/helpers/queries_helper.rb | 1 |
static int read_header(FFV1Context *f) } else { const uint8_t *p = c->bytestream_end; for (f->slice_count = 0; f->slice_count < MAX_SLICES && 3 < p - c->bytestream_start; f->slice_count++) { int trailer = 3 + 5*!!f->ec; int size = AV_RB24(p-trailer)... | static int read_header(FFV1Context *f) } else { const uint8_t *p = c->bytestream_end; for (f->slice_count = 0; f->slice_count < MAX_SLICES && 3 + 5*!!f->ec < p - c->bytestream_start; f->slice_count++) { int trailer = 3 + 5*!!f->ec; int size = AV_RB2... | CVE-2017-15672 | {'CWE-125'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/d893253fcd93d11258e98857175e93be7d158708'} | nvd | The read_header function in libavcodec/ffv1dec.c in FFmpeg 2.4 and 3.3.4 and possibly earlier allows remote attackers to have unspecified impact via a crafted MP4 file, which triggers an out-of-bounds read. | 2017-11-06 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/d893253fcd93d11258e98857175e93be7d158708 | d893253fcd93d11258e98857175e93be7d158708 | SINGLE | ['d893253fcd93d11258e98857175e93be7d158708'] | {'bf10b862fa1d09d9983c63da4ecae80ebe68c28e'} | d893253fcd93d11258e98857175e93be7d158708 | 1 | 10/09/2017, 09:49:28 | avcodec/ffv1dec: Fix out of array read in slice counting
Fixes: test-201710.mp4
Found-by: 连一汉 <lianyihan@360.cn> and Zhibin Hu
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c20f4fcb74da2d0432c7b54499bb98f48236b904)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -787,7 +787,7 @@ static int read_header(FFV1Context *f)\n } else {\n const uint8_t *p = c->bytestream_end;\n for (f->slice_count = 0;\n- f->slice_count < MAX_SLICES && 3 < p - c->bytestream_start;\n+ ... | c | CWE-125 | [
"libavcodec/ffv1dec.c"
] | libavcodec/ffv1dec.c | 1 |
<strong><?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?></strong> </p> <?php if (is_uploaded_file($_FILES['userfile']['tmp_name']) && !($_FILES['userfile']['size'] > $faqConfig->get('records.maxAttachmentSize'))) { $att = PMF_Attachment_Factory::create(); $att->setRecordI... | <strong><?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?></strong> </p> <?php if ( is_uploaded_file($_FILES['userfile']['tmp_name']) && !($_FILES['userfile']['size'] > $faqConfig->get('records.maxAttachmentSize')) && $_FILES['userfile']['type'] !== "text/html" ... | CVE-2017-15727 | {'CWE-79'} | 2.9 | {'https://github.com/thorsten/phpMyFAQ/commit/5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435'} | nvd | In phpMyFAQ before 2.9.9, there is Stored Cross-site Scripting (XSS) via an HTML attachment. | 2017-10-22 | 1 | https://github.com/thorsten/phpMyFAQ | https://github.com/thorsten/phpMyFAQ/commit/5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435 | 5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435 | SINGLE | ['5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435'] | {'09ae17f008bf5b8e5426a668bb09738a5cf9d284'} | 5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435 | 1 | 10/02/2017, 13:30:45 | Prevent users to upload HTML files as attachments | Thorsten Rinne | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -139,7 +139,11 @@\n <strong><?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?></strong>\n </p>\n <?php\n- if (is_uploaded_file($_FILES['userfile']['tmp_name']) && !($_FILES['userfile']['size'] > $faqConfig->get(... | php | CWE-79 | [
"phpmyfaq/admin/attachment.php"
] | phpmyfaq/admin/attachment.php | 1 |
<i aria-hidden="true" class="fa fa-tasks"></i> <?php echo $PMF_LANG['ad_rs'] ?> <div class="pull-right"> <a class="btn btn-danger" href="?action=clear-statistics"> <i aria-hidden="true" class="fa fa-trash"></i> <?php echo $PMF... | <i aria-hidden="true" class="fa fa-tasks"></i> <?php echo $PMF_LANG['ad_rs'] ?> <div class="pull-right"> <a class="btn btn-danger" href="?action=clear-statistics&csrf=<?php echo $user->getCsrfTokenFromSession() ?>"> ... | CVE-2017-15730 | {'CWE-352'} | 6.4 | {'https://github.com/thorsten/phpMyFAQ/commit/cce47f94375bb0102ab4f210672231dbb854dd0d'} | nvd | In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. | 2017-10-22 | 1 | https://github.com/thorsten/phpMyFAQ | https://github.com/thorsten/phpMyFAQ/commit/cce47f94375bb0102ab4f210672231dbb854dd0d | cce47f94375bb0102ab4f210672231dbb854dd0d | SINGLE | ['cce47f94375bb0102ab4f210672231dbb854dd0d'] | {'3c75f8742ee143a9bc04e4cebb01344ac1e25624'} | cce47f94375bb0102ab4f210672231dbb854dd0d | 1 | 09/27/2017, 17:31:16 | Fixed possible direct calls | Thorsten Rinne | null | {'additions': 11, 'deletions': 2, 'total': 13} | [
{
"additions": 11,
"changes": 13,
"deletions": 2,
"patch": "@@ -41,7 +41,8 @@\n <i aria-hidden=\"true\" class=\"fa fa-tasks\"></i> <?php echo $PMF_LANG['ad_rs'] ?>\n \n <div class=\"pull-right\">\n- <a class=\"btn btn-danger\" href=\"?ac... | php | CWE-352 | [
"phpmyfaq/admin/stat.ratings.php"
] | phpmyfaq/admin/stat.ratings.php | 1 |
$perpage = 15; $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); if (is_null($pages)) { $pages = round(($logging->getNumberOfEntries() + ($perpage / 3)) / $perpage, 0); } $start = ($pa... | $perpage = 15; $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT); $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1); $csrfToken = PMF_Filter::filterInput(INPUT_GET, 'csrf', FILTER_SANITIZE_STRING); if (is_null($pages)) { $pages = round(($log... | CVE-2017-15731 | {'CWE-352'} | 6.4 | {'https://github.com/thorsten/phpMyFAQ/commit/fadb9a70b5f7624a6926b8834d5c6001c210f09c'} | nvd | In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.adminlog.php. | 2017-10-22 | 1 | https://github.com/thorsten/phpMyFAQ | https://github.com/thorsten/phpMyFAQ/commit/fadb9a70b5f7624a6926b8834d5c6001c210f09c | fadb9a70b5f7624a6926b8834d5c6001c210f09c | SINGLE | ['fadb9a70b5f7624a6926b8834d5c6001c210f09c'] | {'fa26c52384b010edaf60c525ae5b040f05da9f77'} | fadb9a70b5f7624a6926b8834d5c6001c210f09c | 1 | 10/02/2017, 05:56:00 | Added missing CSRF protection | Thorsten Rinne | null | {'additions': 21, 'deletions': 13, 'total': 34} | [
{
"additions": 21,
"changes": 34,
"deletions": 13,
"patch": "@@ -35,11 +35,18 @@\n $perpage = 15;\n $pages = PMF_Filter::filterInput(INPUT_GET, 'pages', FILTER_VALIDATE_INT);\n $page = PMF_Filter::filterInput(INPUT_GET, 'page', FILTER_VALIDATE_INT, 1);\n+ $csrfToken = PMF_Filter::filt... | php | CWE-352 | [
"phpmyfaq/admin/stat.adminlog.php"
] | phpmyfaq/admin/stat.adminlog.php | 1 |
$news = new PMF_News($faqConfig); if ('addnews' == $action && $user->perm->checkRight($user->getUserId(), 'addnews')) { ?> <header class="row"> <div class="col-lg-12"> <h2 class="page-header"><i aria-hidden="true" class="fa fa-pencil"></i> <?php echo $PMF_LANG['ad_news_add']; ... | $news = new PMF_News($faqConfig); $csrfToken = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING); if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfToken) { $csrfCheck = false; } else { $csrfCheck = true; } if ('addnews' == $action && $user->perm->ch... | CVE-2017-15732 | {'CWE-352'} | 6.4 | {'https://github.com/thorsten/phpMyFAQ/commit/ec8b3cc37d05b6625e24916b8f7253f830015b5f'} | nvd | In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/news.php. | 2017-10-22 | 1 | https://github.com/thorsten/phpMyFAQ | https://github.com/thorsten/phpMyFAQ/commit/ec8b3cc37d05b6625e24916b8f7253f830015b5f | ec8b3cc37d05b6625e24916b8f7253f830015b5f | SINGLE | ['ec8b3cc37d05b6625e24916b8f7253f830015b5f'] | {'5c3e4f96ff0ef6b91a3f0aa64eb28197c5cf5435'} | ec8b3cc37d05b6625e24916b8f7253f830015b5f | 1 | 10/03/2017, 10:30:39 | Added missing CSRF check | Thorsten Rinne | null | {'additions': 33, 'deletions': 41, 'total': 74} | [
{
"additions": 33,
"changes": 74,
"deletions": 41,
"patch": "@@ -29,12 +29,18 @@\n \n $news = new PMF_News($faqConfig);\n \n+$csrfToken = PMF_Filter::filterInput(INPUT_POST, 'csrf', FILTER_SANITIZE_STRING);\n+if (!isset($_SESSION['phpmyfaq_csrf_token']) || $_SESSION['phpmyfaq_csrf_token'] !== $csrfT... | php | CWE-352 | [
"phpmyfaq/admin/news.php"
] | phpmyfaq/admin/news.php | 1 |
<h2 class="page-header"> <i aria-hidden="true" class="fa fa-tasks"></i> <?php echo $PMF_LANG['ad_stat_sess'] ?> <div class="pull-right"> <a class="btn btn-danger" href="?action=clear-visits"> <i aria-hidden="tru... | <h2 class="page-header"> <i aria-hidden="true" class="fa fa-tasks"></i> <?php echo $PMF_LANG['ad_stat_sess'] ?> <div class="pull-right"> <a class="btn btn-danger" href="?action=clear-visits&csrf=<?php echo $user-... | CVE-2017-15734 | {'CWE-352'} | 6.4 | {'https://github.com/thorsten/phpMyFAQ/commit/fa26c52384b010edaf60c525ae5b040f05da9f77'} | nvd | In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. | 2017-10-22 | 1 | https://github.com/thorsten/phpMyFAQ | https://github.com/thorsten/phpMyFAQ/commit/fa26c52384b010edaf60c525ae5b040f05da9f77 | fa26c52384b010edaf60c525ae5b040f05da9f77 | SINGLE | ['fa26c52384b010edaf60c525ae5b040f05da9f77'] | {'cce47f94375bb0102ab4f210672231dbb854dd0d'} | fa26c52384b010edaf60c525ae5b040f05da9f77 | 1 | 10/01/2017, 13:16:52 | Added missing CSRF protection | Thorsten Rinne | null | {'additions': 12, 'deletions': 4, 'total': 16} | [
{
"additions": 12,
"changes": 16,
"deletions": 4,
"patch": "@@ -30,7 +30,8 @@\n <h2 class=\"page-header\">\n <i aria-hidden=\"true\" class=\"fa fa-tasks\"></i> <?php echo $PMF_LANG['ad_stat_sess'] ?>\n <div class=\"pull-right\">\n- ... | php | CWE-352 | [
"phpmyfaq/admin/stat.main.php"
] | phpmyfaq/admin/stat.main.php | 1 |
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) BT_DBG(""); baswap((void *) dst, &l2cap_pi(sock->sk)->chan->dst); baswap((void *) src, &l2cap_pi(sock->sk)->chan->src); | int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) BT_DBG(""); if (!l2cap_is_socket(sock)) return -EBADFD; baswap((void *) dst, &l2cap_pi(sock->sk)->chan->dst); baswap((void *) src, &l2cap_pi(sock->sk)->chan->src); | CVE-2017-15868 | {'CWE-20'} | 10 | {'https://github.com/torvalds/linux/commit/71bb99a02b32b4cc4265118e85f6035ca72923f0'} | nvd | The bnep_add_connection function in net/bluetooth/bnep/core.c in the Linux kernel before 3.19 does not ensure that an l2cap socket is available, which allows local users to gain privileges via a crafted application. | 2017-12-05 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/71bb99a02b32b4cc4265118e85f6035ca72923f0 | 71bb99a02b32b4cc4265118e85f6035ca72923f0 | SINGLE | ['71bb99a02b32b4cc4265118e85f6035ca72923f0'] | {'96c26653ce65bf84f3212f8b00d4316c1efcbf4c'} | 71bb99a02b32b4cc4265118e85f6035ca72923f0 | 1 | 12/19/2014, 06:20:59 | Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket
same story as cmtp
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org> | Al Viro | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -533,6 +533,9 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)\n \n \tBT_DBG(\"\");\n \n+\tif (!l2cap_is_socket(sock))\n+\t\treturn -EBADFD;\n+\n \tbaswap((void *) dst, &l2cap_pi(sock->sk)->chan->dst);\n \tbasw... | c | CWE-20 | [
"net/bluetooth/bnep/core.c"
] | net/bluetooth/bnep/core.c | 1 |
destroy_server(struct server *server) { } static void build_config(char *prefix, struct server *server) { char *path = NULL; int path_size = strlen(prefix) + strlen(server->port) + 20; build_config(char *prefix, struct server *server) fprintf(f, "{\n"); fprintf(f, "\"server_port\":%d,\n", atoi(serv... | destroy_server(struct server *server) { } static void build_config(char *prefix, struct manager_ctx *manager, struct server *server) { char *path = NULL; int path_size = strlen(prefix) + strlen(server->port) + 20; build_config(char *prefix, struct server *server) fprintf(f, "{\n"); fprintf(f, "\"se... | CVE-2017-15924 | {'CWE-78'} | 10 | {'https://github.com/shadowsocks/shadowsocks-libev/commit/c67d275803dc6ea22c558d06b1f7ba9f94cd8de3'} | nvd | In manager.c in ss-manager in shadowsocks-libev 3.1.0, improper parsing allows command injection via shell metacharacters in a JSON configuration request received via 127.0.0.1 UDP traffic, related to the add_server, build_config, and construct_command_line functions. | 2017-10-27 | 1 | https://github.com/shadowsocks/shadowsocks-libev | https://github.com/shadowsocks/shadowsocks-libev/commit/c67d275803dc6ea22c558d06b1f7ba9f94cd8de3 | c67d275803dc6ea22c558d06b1f7ba9f94cd8de3 | SINGLE | ['c67d275803dc6ea22c558d06b1f7ba9f94cd8de3'] | {'10a2d3e3cd76b148d5f5996f06267cc40e62cac5'} | c67d275803dc6ea22c558d06b1f7ba9f94cd8de3 | 1 | 10/13/2017, 23:21:08 | Fix #1734 | Max Lv | null | {'additions': 19, 'deletions': 12, 'total': 31} | [
{
"additions": 19,
"changes": 31,
"deletions": 12,
"patch": "@@ -92,7 +92,7 @@ destroy_server(struct server *server) {\n }\n \n static void\n-build_config(char *prefix, struct server *server)\n+build_config(char *prefix, struct manager_ctx *manager, struct server *server)\n {\n char *path = N... | c | CWE-78 | [
"src/manager.c"
] | src/manager.c | 1 |
static Sdb *store_versioninfo_gnu_verneed(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) free (s); } sdb_num_set (sdb_version, "cnt", entry->vn_cnt, 0); vstart += entry->vn_aux; for (j = 0, isum = i + entry->vn_aux; j < entry->vn_cnt && vstart + sizeof (Elf_(Vernaux)) <= end; ++j) { int k; Elf_(Vernaux) * aux... | static Sdb *store_versioninfo_gnu_verneed(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) free (s); } sdb_num_set (sdb_version, "cnt", entry->vn_cnt, 0); st32 vnaux = entry->vn_aux; if (vnaux < 1) { goto beach; } vstart += vnaux; for (j = 0, isum = i + entry->vn_aux; j < entry->vn_cnt && vstart + sizeof (El... | CVE-2017-15931 | {'CWE-125'} | 6.4 | {'https://github.com/radare/radare2/commit/c6d0076c924891ad9948a62d89d0bcdaf965f0cd'} | nvd | In radare2 2.0.1, an integer exception (negative number leading to an invalid memory access) exists in store_versioninfo_gnu_verneed() in libr/bin/format/elf/elf.c via crafted ELF files on 32bit systems. | 2017-10-27 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/c6d0076c924891ad9948a62d89d0bcdaf965f0cd | c6d0076c924891ad9948a62d89d0bcdaf965f0cd | SINGLE | ['c6d0076c924891ad9948a62d89d0bcdaf965f0cd'] | {'e9ac4370a3a12062f71b19357da20e2344fc6fbf'} | c6d0076c924891ad9948a62d89d0bcdaf965f0cd | 1 | 10/25/2017, 16:00:11 | Fix #8731 - Crash in ELF parser with negative 32bit number | pancake | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -900,7 +900,11 @@ static Sdb *store_versioninfo_gnu_verneed(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)\n \t\t\tfree (s);\n \t\t}\n \t\tsdb_num_set (sdb_version, \"cnt\", entry->vn_cnt, 0);\n-\t\tvstart += entry->vn_aux;\n+\t\tst32 vnaux = entr... | c | CWE-125 | [
"libr/bin/format/elf/elf.c"
] | libr/bin/format/elf/elf.c | 1 |
static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) verdef->vd_hash = READ32 (dfs, j) verdef->vd_aux = READ32 (dfs, j) verdef->vd_next = READ32 (dfs, j) vstart += verdef->vd_aux; if (vstart > end || vstart + sizeof (Elf_(Verdaux)) > end) { sdb_free (sdb_verdef); goto out_err... | static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) verdef->vd_hash = READ32 (dfs, j) verdef->vd_aux = READ32 (dfs, j) verdef->vd_next = READ32 (dfs, j) int vdaux = verdef->vd_aux; if (vdaux < 1) { sdb_free (sdb_verdef); goto out_error; } vstart += vdaux; if (vstart > ... | CVE-2017-15932 | {'CWE-125'} | 6.4 | {'https://github.com/radare/radare2/commit/44ded3ff35b8264f54b5a900cab32ec489d9e5b9'} | nvd | In radare2 2.0.1, an integer exception (negative number leading to an invalid memory access) exists in store_versioninfo_gnu_verdef() in libr/bin/format/elf/elf.c via crafted ELF files when parsing the ELF version on 32bit systems. | 2017-10-27 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/44ded3ff35b8264f54b5a900cab32ec489d9e5b9 | 44ded3ff35b8264f54b5a900cab32ec489d9e5b9 | SINGLE | ['44ded3ff35b8264f54b5a900cab32ec489d9e5b9'] | {'66ca84608621988aef3fe4149dd7d4fc3021843b'} | 44ded3ff35b8264f54b5a900cab32ec489d9e5b9 | 1 | 10/25/2017, 16:09:24 | Fix #8743 - Crash in ELF version parser on 32bit systems | pancake | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -748,7 +748,12 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)\n \t\tverdef->vd_hash = READ32 (dfs, j)\n \t\tverdef->vd_aux = READ32 (dfs, j)\n \t\tverdef->vd_next = READ32 (dfs, j)\n-\t\tvstart += verdef... | c | CWE-125 | [
"libr/bin/format/elf/elf.c"
] | libr/bin/format/elf/elf.c | 1 |
static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) return false; } link_shdr = &bin->shdr[shdr->sh_link]; if (shdr->sh_size < 1) { return false; } Elf_(Verdef) *defs = calloc (shdr->sh_size, sizeof (char)); static Sdb *store_versioninfo_gnu_verneed(ELFOBJ *bin, Elf_(Shdr) *shdr, i... | static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz) return false; } link_shdr = &bin->shdr[shdr->sh_link]; if (shdr->sh_size < 1 || shdr->sh_size > SIZE_MAX) { return false; } Elf_(Verdef) *defs = calloc (shdr->sh_size, sizeof (char)); static Sdb *store_versioninfo_gnu_verneed(ELFO... | CVE-2017-16357 | {'CWE-119'} | 6.4 | {'https://github.com/radare/radare2/commit/0b973e28166636e0ff1fad80baa0385c9c09c53a'} | nvd | In radare 2.0.1, a memory corruption vulnerability exists in store_versioninfo_gnu_verdef() and store_versioninfo_gnu_verneed() in libr/bin/format/elf/elf.c, as demonstrated by an invalid free. This error is due to improper sh_size validation when allocating memory. | 2017-11-01 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/0b973e28166636e0ff1fad80baa0385c9c09c53a | 0b973e28166636e0ff1fad80baa0385c9c09c53a | SINGLE | ['0b973e28166636e0ff1fad80baa0385c9c09c53a'] | {'2fd75e3063ebd5bdf76d8f83a5eb17367ec2b965'} | 0b973e28166636e0ff1fad80baa0385c9c09c53a | 1 | 10/28/2017, 03:56:30 | Fixed crash in elf.c with 32bit r2 when shdr->sh_size > max size_t | Khairul Kasmiran | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -705,7 +705,7 @@ static Sdb *store_versioninfo_gnu_verdef(ELFOBJ *bin, Elf_(Shdr) *shdr, int sz)\n \t\treturn false;\n \t}\n \tlink_shdr = &bin->shdr[shdr->sh_link];\n-\tif (shdr->sh_size < 1) {\n+\tif (shdr->sh_size < 1 || shdr->sh_size >... | c | CWE-119 | [
"libr/bin/format/elf/elf.c"
] | libr/bin/format/elf/elf.c | 1 |
static int string_scan_range(RList *list, const ut8 *buf, int min, // TODO: move into adjust_offset switch (str_type) { case R_STRING_TYPE_WIDE: { const ut8 *p = buf + str_start - 2; if (p[0] == 0xff && p[1] == 0xfe) { str_start -= 2; // \xff\xfe } } break; case... | static int string_scan_range(RList *list, const ut8 *buf, int min, // TODO: move into adjust_offset switch (str_type) { case R_STRING_TYPE_WIDE: if (str_start > 1) { const ut8 *p = buf + str_start - 2; if (p[0] == 0xff && p[1] == 0xfe) { str_start -= 2; // \xff\xfe } } ... | CVE-2017-16358 | {'CWE-125'} | 6.4 | {'https://github.com/radare/radare2/commit/d31c4d3cbdbe01ea3ded16a584de94149ecd31d9'} | nvd | In radare 2.0.1, an out-of-bounds read vulnerability exists in string_scan_range() in libr/bin/bin.c when doing a string search. | 2017-11-01 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/d31c4d3cbdbe01ea3ded16a584de94149ecd31d9 | d31c4d3cbdbe01ea3ded16a584de94149ecd31d9 | SINGLE | ['d31c4d3cbdbe01ea3ded16a584de94149ecd31d9'] | {'dc8cff2f4dd3456b546182b36e91ce060330ab02'} | d31c4d3cbdbe01ea3ded16a584de94149ecd31d9 | 1 | 10/31/2017, 12:08:52 | Fix #8748 - Fix oobread on string search | pancake | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -352,16 +352,16 @@ static int string_scan_range(RList *list, const ut8 *buf, int min,\n \t\t\t\t// TODO: move into adjust_offset\n \t\t\t\tswitch (str_type) {\n \t\t\t\tcase R_STRING_TYPE_WIDE:\n-\t\t\t\t\t{\n-\t\t\t\t\t\tconst ut8 *p = bu... | c | CWE-125 | [
"libr/bin/bin.c"
] | libr/bin/bin.c | 1 |
static int uwbd(void *param) /** Start the UWB daemon */ void uwbd_start(struct uwb_rc *rc) { rc->uwbd.task = kthread_run(uwbd, rc, "uwbd"); if (rc->uwbd.task == NULL) printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); else rc->uwbd.pid = rc->uwbd.task->pid; } /* Stop the UWB... | static int uwbd(void *param) /** Start the UWB daemon */ void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task;... | CVE-2017-16526 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/bbf26183b7a6236ba602f4d6a2f7cade35bba043'} | nvd | drivers/uwb/uwbd.c in the Linux kernel before 4.13.6 allows local users to cause a denial of service (general protection fault and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bbf26183b7a6236ba602f4d6a2f7cade35bba043 | bbf26183b7a6236ba602f4d6a2f7cade35bba043 | SINGLE | ['bbf26183b7a6236ba602f4d6a2f7cade35bba043'] | {'70e743e4cec3733dc13559f6184b35d358b9ef3f'} | bbf26183b7a6236ba602f4d6a2f7cade35bba043 | 1 | 09/14/2017, 12:30:55 | uwb: properly check kthread_run return value
uwbd_start() calls kthread_run() and checks that the return value is
not NULL. But the return value is not NULL in case kthread_run() fails,
it takes the form of ERR_PTR(-EINTR).
Use IS_ERR() instead.
Also add a check to uwbd_stop().
Signed-off-by: Andrey Konovalov <andr... | Andrey Konovalov | null | {'additions': 8, 'deletions': 4, 'total': 12} | [
{
"additions": 8,
"changes": 12,
"deletions": 4,
"patch": "@@ -302,18 +302,22 @@ static int uwbd(void *param)\n /** Start the UWB daemon */\n void uwbd_start(struct uwb_rc *rc)\n {\n-\trc->uwbd.task = kthread_run(uwbd, rc, \"uwbd\");\n-\tif (rc->uwbd.task == NULL)\n+\tstruct task_struct *task = kthr... | c | CWE-119 | [
"drivers/uwb/uwbd.c"
] | drivers/uwb/uwbd.c | 1 |
void snd_seq_device_load_drivers(void) flush_work(&autoload_work); } EXPORT_SYMBOL(snd_seq_device_load_drivers); #else #define queue_autoload_drivers() /* NOP */ #endif /* static int snd_seq_device_dev_free(struct snd_device *device) { struct snd_seq_device *dev = device->device_data; put_device(&dev->dev); retu... | void snd_seq_device_load_drivers(void) flush_work(&autoload_work); } EXPORT_SYMBOL(snd_seq_device_load_drivers); #define cancel_autoload_drivers() cancel_work_sync(&autoload_work) #else #define queue_autoload_drivers() /* NOP */ #define cancel_autoload_drivers() /* NOP */ #endif /* static int snd_seq_device_dev_free... | CVE-2017-16528 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57'} | nvd | sound/core/seq_device.c in the Linux kernel before 4.13.4 allows local users to cause a denial of service (snd_rawmidi_dev_seq_free use-after-free and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57 | fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57 | SINGLE | ['fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57'] | {'f16e666b9b7e07237ca0669df9b89ccf8dfc102c'} | fc27fe7e8deef2f37cba3f2be2d52b6ca5eb9d57 | 1 | 09/12/2017, 10:41:20 | ALSA: seq: Cancel pending autoload work at unbinding device
ALSA sequencer core has a mechanism to load the enumerated devices
automatically, and it's performed in an off-load work. This seems
causing some race when a sequencer is removed while the pending
autoload work is running. As syzkaller spotted, it may lead ... | Takashi Iwai | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -148,8 +148,10 @@ void snd_seq_device_load_drivers(void)\n \tflush_work(&autoload_work);\n }\n EXPORT_SYMBOL(snd_seq_device_load_drivers);\n+#define cancel_autoload_drivers()\tcancel_work_sync(&autoload_work)\n #else\n #define queue_autolo... | c | CWE-416 | [
"sound/core/seq_device.c"
] | sound/core/seq_device.c | 1 |
static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; /* find audiocontrol interface */ host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; static int snd_usb_create_streams(struct snd_usb_audio *chip, int c... | static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) struct usb_interface_descriptor *altsd; void *control_header; int i, protocol; int rest_bytes; /* find audiocontrol interface */ host_iface = &usb_ifnum_to_if(dev, ctrlif)->altsetting[0]; static int snd_usb_create_streams(struct snd_usb_a... | CVE-2017-16529 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991'} | nvd | The snd_usb_create_streams function in sound/usb/card.c in the Linux kernel before 4.13.6 allows local users to cause a denial of service (out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991 | bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991 | SINGLE | ['bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991'] | {'c9adcdbc653b52e4be834f535eefec833f9ca6b1'} | bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991 | 1 | 09/22/2017, 14:18:53 | ALSA: usb-audio: Check out-of-bounds access by corrupted buffer descriptor
When a USB-audio device receives a maliciously adjusted or corrupted
buffer descriptor, the USB-audio driver may access an out-of-bounce
value at its parser. This was detected by syzkaller, something like:
BUG: KASAN: slab-out-of-bounds in ... | Takashi Iwai | null | {'additions': 20, 'deletions': 0, 'total': 20} | [
{
"additions": 20,
"changes": 20,
"deletions": 0,
"patch": "@@ -221,6 +221,7 @@ static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif)\n \tstruct usb_interface_descriptor *altsd;\n \tvoid *control_header;\n \tint i, protocol;\n+\tint rest_bytes;\n \n \t/* find audiocontrol interfa... | c | CWE-125 | [
"sound/usb/card.c"
] | sound/usb/card.c | 1 |
get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) return tmp; } if (in) { dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); } if (iso_in) { dev->i... | get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf) return tmp; } if (in) dev->in_pipe = usb_rcvbulkpipe(udev, in->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); if (out) dev->out_pipe = usb_sndbulkpipe(udev, out->desc.bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); if (iso_in) { ... | CVE-2017-16532 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/7c80f9e4a588f1925b07134bb2e3689335f6c6d8'} | nvd | The get_endpoints function in drivers/usb/misc/usbtest.c in the Linux kernel through 4.13.11 allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/7c80f9e4a588f1925b07134bb2e3689335f6c6d8 | 7c80f9e4a588f1925b07134bb2e3689335f6c6d8 | SINGLE | ['7c80f9e4a588f1925b07134bb2e3689335f6c6d8'] | {'ff74745e6d3d97a865eda8c1f3fd29c13b79f0cc'} | 7c80f9e4a588f1925b07134bb2e3689335f6c6d8 | 1 | 09/29/2017, 14:54:24 | usb: usbtest: fix NULL pointer dereference
If the usbtest driver encounters a device with an IN bulk endpoint but
no OUT bulk endpoint, it will try to dereference a NULL pointer
(out->desc.bEndpointAddress). The problem can be solved by adding a
missing test.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Rep... | Alan Stern | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -202,12 +202,13 @@ get_endpoints(struct usbtest_dev *dev, struct usb_interface *intf)\n \t\t\treturn tmp;\n \t}\n \n-\tif (in) {\n+\tif (in)\n \t\tdev->in_pipe = usb_rcvbulkpipe(udev,\n \t\t\tin->desc.bEndpointAddress & USB_ENDPOINT_NUMBER... | c | CWE-476 | [
"drivers/usb/misc/usbtest.c"
] | drivers/usb/misc/usbtest.c | 1 |
static int usbhid_parse(struct hid_device *hid) unsigned int rsize = 0; char *rdesc; int ret, n; quirks = usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor), le16_to_cpu(dev->descriptor.idProduct)); static int usbhid_parse(struct hid_device *hid) return -ENODEV; } hid->version = le16_to_cpu(hdesc->... | static int usbhid_parse(struct hid_device *hid) unsigned int rsize = 0; char *rdesc; int ret, n; int num_descriptors; size_t offset = offsetof(struct hid_descriptor, desc); quirks = usbhid_lookup_quirk(le16_to_cpu(dev->descriptor.idVendor), le16_to_cpu(dev->descriptor.idProduct)); static int usbhid_parse(str... | CVE-2017-16533 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/f043bfc98c193c284e2cd768fefabe18ac2fed9b'} | nvd | The usbhid_parse function in drivers/hid/usbhid/hid-core.c in the Linux kernel before 4.13.8 allows local users to cause a denial of service (out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f043bfc98c193c284e2cd768fefabe18ac2fed9b | f043bfc98c193c284e2cd768fefabe18ac2fed9b | SINGLE | ['f043bfc98c193c284e2cd768fefabe18ac2fed9b'] | {'66dcdafe8e251a3edc5d84cf725835567bd3dd35'} | f043bfc98c193c284e2cd768fefabe18ac2fed9b | 1 | 09/28/2017, 10:16:30 | HID: usbhid: fix out-of-bounds bug
The hid descriptor identifies the length and type of subordinate
descriptors for a device. If the received hid descriptor is smaller than
the size of the struct hid_descriptor, it is possible to cause
out-of-bounds.
In addition, if bNumDescriptors of the hid descriptor have an incor... | Jaejoong Kim | null | {'additions': 11, 'deletions': 1, 'total': 12} | [
{
"additions": 11,
"changes": 12,
"deletions": 1,
"patch": "@@ -975,6 +975,8 @@ static int usbhid_parse(struct hid_device *hid)\n \tunsigned int rsize = 0;\n \tchar *rdesc;\n \tint ret, n;\n+\tint num_descriptors;\n+\tsize_t offset = offsetof(struct hid_descriptor, desc);\n \n \tquirks = usbhid_look... | c | CWE-125 | [
"drivers/hid/usbhid/hid-core.c"
] | drivers/hid/usbhid/hid-core.c | 1 |
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr, elength = 1; goto next_desc; } if (buffer[1] != USB_DT_CS_INTERFACE) { dev_err(&intf->dev, "skipping garbage\n"); goto next_desc; | int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr, elength = 1; goto next_desc; } if ((buflen < elength) || (elength < 3)) { dev_err(&intf->dev, "invalid descriptor buffer length\n"); break; } if (buffer[1] != USB_DT_CS_INTERFACE) { dev_err(&intf->dev, "skipping garbage\n"); goto nex... | CVE-2017-16534 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/2e1c42391ff2556387b3cb6308b24f6f65619feb'} | nvd | The cdc_parse_cdc_header function in drivers/usb/core/message.c in the Linux kernel before 4.13.6 allows local users to cause a denial of service (out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2e1c42391ff2556387b3cb6308b24f6f65619feb | 2e1c42391ff2556387b3cb6308b24f6f65619feb | SINGLE | ['2e1c42391ff2556387b3cb6308b24f6f65619feb'] | {'60e70ecd7ae0f09ed07699517071eacb01c26d13'} | 2e1c42391ff2556387b3cb6308b24f6f65619feb | 1 | 09/21/2017, 14:58:48 | USB: core: harden cdc_parse_cdc_header
Andrey Konovalov reported a possible out-of-bounds problem for the
cdc_parse_cdc_header function. He writes:
It looks like cdc_parse_cdc_header() doesn't validate buflen
before accessing buffer[1], buffer[2] and so on. The only check
present is while (buflen > 0).
So fix thi... | Greg Kroah-Hartman | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -2069,6 +2069,10 @@ int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,\n \t\t\telength = 1;\n \t\t\tgoto next_desc;\n \t\t}\n+\t\tif ((buflen < elength) || (elength < 3)) {\n+\t\t\tdev_err(&intf->dev, \"invalid descriptor buffer l... | c | CWE-119 | [
"drivers/usb/core/message.c"
] | drivers/usb/core/message.c | 1 |
int usb_get_bos_descriptor(struct usb_device *dev) for (i = 0; i < num; i++) { buffer += length; cap = (struct usb_dev_cap_header *)buffer; length = cap->bLength; if (total_len < length) break; total_len -= length; if (cap->bDescriptorType != USB_DT_DEVICE_CAPABILITY) { | int usb_get_bos_descriptor(struct usb_device *dev) for (i = 0; i < num; i++) { buffer += length; cap = (struct usb_dev_cap_header *)buffer; if (total_len < sizeof(*cap) || total_len < cap->bLength) { dev->bos->desc->bNumDeviceCaps = i; break; } length = cap->bLength; total_len -= length; if (cap... | CVE-2017-16535 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/1c0edc3633b56000e18d82fc241e3995ca18a69e'} | nvd | The usb_get_bos_descriptor function in drivers/usb/core/config.c in the Linux kernel before 4.13.10 allows local users to cause a denial of service (out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1c0edc3633b56000e18d82fc241e3995ca18a69e | 1c0edc3633b56000e18d82fc241e3995ca18a69e | SINGLE | ['1c0edc3633b56000e18d82fc241e3995ca18a69e'] | {'671632a019853744bc6c0b2ed8bcfdbcea371848'} | 1c0edc3633b56000e18d82fc241e3995ca18a69e | 1 | 10/18/2017, 16:49:38 | USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()
Andrey used the syzkaller fuzzer to find an out-of-bounds memory
access in usb_get_bos_descriptor(). The code wasn't checking that the
next usb_dev_cap_header structure could fit into the remaining buffer
space.
This patch fixes the error and also r... | Alan Stern | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -960,10 +960,12 @@ int usb_get_bos_descriptor(struct usb_device *dev)\n \tfor (i = 0; i < num; i++) {\n \t\tbuffer += length;\n \t\tcap = (struct usb_dev_cap_header *)buffer;\n-\t\tlength = cap->bLength;\n \n-\t\tif (total_len < length)\n+... | c | CWE-125 | [
"drivers/usb/core/config.c"
] | drivers/usb/core/config.c | 1 |
func DefaultLinuxSpec() specs.Spec { "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", }, ReadonlyPaths: []string{ "/proc/asound", | func DefaultLinuxSpec() specs.Spec { "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", }, ReadonlyPaths: []string{ "/proc/asound", | CVE-2017-16539 | {'CWE-200'} | 2.9 | {'https://github.com/moby/moby/pull/35399/commits/a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1'} | nvd | The DefaultLinuxSpec function in oci/defaults.go in Docker Moby through 17.03.2-ce does not block /proc/scsi pathnames, which allows attackers to trigger data loss (when certain older Linux kernels are used) by leveraging Docker container access to write a "scsi remove-single-device" line to /proc/scsi/scsi, aka SCSI M... | 2017-11-04 | 1 | https://github.com/moby/moby | https://github.com/moby/moby/pull/35399/commits/a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1 | a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1 | SINGLE | ['a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1'] | {'7801be2eee987013cc20148d0335f42bec618835'} | a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1 | 1 | 11/03/2017, 15:12:22 | Add /proc/scsi to masked paths
This is writeable, and can be used to remove devices. Containers do
not need to know about scsi devices.
Signed-off-by: Justin Cormack <justin.cormack@docker.com> | Justin Cormack | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -119,6 +119,7 @@ func DefaultLinuxSpec() specs.Spec {\n \t\t\t\"/proc/timer_list\",\n \t\t\t\"/proc/timer_stats\",\n \t\t\t\"/proc/sched_debug\",\n+\t\t\t\"/proc/scsi\",\n \t\t},\n \t\tReadonlyPaths: []string{\n \t\t\t\"/proc/asound\",",
... | go | CWE-200 | [
"oci/defaults.go"
] | oci/defaults.go | 1 |
static void parse_hid_report_descriptor(struct gtco *device, char * report, /* Walk this report and pull out the info we need */ while (i < length) { prefix = report[i]; /* Skip over prefix */ i++; /* Determine data size and save the data in the proper variable */ size = PREF_SIZE(prefix); switch (si... | static void parse_hid_report_descriptor(struct gtco *device, char * report, /* Walk this report and pull out the info we need */ while (i < length) { prefix = report[i++]; /* Determine data size and save the data in the proper variable */ size = (1U << PREF_SIZE(prefix)) >> 1; if (i + size > length) { ... | CVE-2017-16643 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/a50829479f58416a013a4ccca791336af3c584c7'} | nvd | The parse_hid_report_descriptor function in drivers/input/tablet/gtco.c in the Linux kernel before 4.13.11 allows local users to cause a denial of service (out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-07 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/a50829479f58416a013a4ccca791336af3c584c7 | a50829479f58416a013a4ccca791336af3c584c7 | SINGLE | ['a50829479f58416a013a4ccca791336af3c584c7'] | {'57a95b41869b8f0d1949c24df2a9dac1ca7082ee'} | a50829479f58416a013a4ccca791336af3c584c7 | 1 | 10/23/2017, 23:46:00 | Input: gtco - fix potential out-of-bound access
parse_hid_report_descriptor() has a while (i < length) loop, which
only guarantees that there's at least 1 byte in the buffer, but the
loop body can read multiple bytes which causes out-of-bounds access.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by:... | Dmitry Torokhov | null | {'additions': 10, 'deletions': 7, 'total': 17} | [
{
"additions": 10,
"changes": 17,
"deletions": 7,
"patch": "@@ -230,22 +230,25 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,\n \n \t/* Walk this report and pull out the info we need */\n \twhile (i < length) {\n-\t\tprefix = report[i];\n-\n-\t\t/* Skip over prefix *... | c | CWE-125 | [
"drivers/input/tablet/gtco.c"
] | drivers/input/tablet/gtco.c | 1 |
ims_pcu_get_cdc_union_desc(struct usb_interface *intf) return NULL; } while (buflen > 0) { union_desc = (struct usb_cdc_union_desc *)buf; if (union_desc->bDescriptorType == USB_DT_CS_INTERFACE && union_desc->bDescriptorSubType == USB_CDC_UNION_TYPE) { dev_dbg(&intf->dev, "Found union header\n"); ... | ims_pcu_get_cdc_union_desc(struct usb_interface *intf) return NULL; } while (buflen >= sizeof(*union_desc)) { union_desc = (struct usb_cdc_union_desc *)buf; if (union_desc->bLength > buflen) { dev_err(&intf->dev, "Too large descriptor\n"); return NULL; } if (union_desc->bDescriptorType == USB_DT_C... | CVE-2017-16645 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/ea04efee7635c9120d015dcdeeeb6988130cb67a'} | nvd | The ims_pcu_get_cdc_union_desc function in drivers/input/misc/ims-pcu.c in the Linux kernel through 4.13.11 allows local users to cause a denial of service (ims_pcu_parse_cdc_data out-of-bounds read and system crash) or possibly have unspecified other impact via a crafted USB device. | 2017-11-07 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ea04efee7635c9120d015dcdeeeb6988130cb67a | ea04efee7635c9120d015dcdeeeb6988130cb67a | SINGLE | ['ea04efee7635c9120d015dcdeeeb6988130cb67a'] | {'20ac95d52a28f55472a54cc751eeec49fd445cb1'} | ea04efee7635c9120d015dcdeeeb6988130cb67a | 1 | 10/07/2017, 18:07:47 | Input: ims-psu - check if CDC union descriptor is sane
Before trying to use CDC union descriptor, try to validate whether that it
is sane by checking that intf->altsetting->extra is big enough and that
descriptor bLength is not too big and not too small.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-of... | Dmitry Torokhov | null | {'additions': 14, 'deletions': 2, 'total': 16} | [
{
"additions": 14,
"changes": 16,
"deletions": 2,
"patch": "@@ -1635,13 +1635,25 @@ ims_pcu_get_cdc_union_desc(struct usb_interface *intf)\n \t\treturn NULL;\n \t}\n \n-\twhile (buflen > 0) {\n+\twhile (buflen >= sizeof(*union_desc)) {\n \t\tunion_desc = (struct usb_cdc_union_desc *)buf;\n \n+\t\tif... | c | CWE-125 | [
"drivers/input/misc/ims-pcu.c"
] | drivers/input/misc/ims-pcu.c | 1 |
#define SMKTREE_BITS 9 #define SMK_NODE 0x80000000 typedef struct SmackVContext { AVCodecContext *avctx; enum SmkBlockTypes { static int smacker_decode_tree(BitstreamContext *bc, HuffContext *hc, uint32_t prefix, int length) { if (!bitstream_read_bit(bc)) { // Leaf if(... | #define SMKTREE_BITS 9 #define SMK_NODE 0x80000000 #define SMKTREE_DECODE_MAX_RECURSION 32 typedef struct SmackVContext { AVCodecContext *avctx; enum SmkBlockTypes { static int smacker_decode_tree(BitstreamContext *bc, HuffContext *hc, uint32_t prefix, int length) { if (length ... | CVE-2017-16803 | {'CWE-119'} | 2.9 | {'https://github.com/libav/libav/commit/cd4663dc80323ba64989d0c103d51ad3ee0e9c2f'} | nvd | In Libav through 11.11 and 12.x through 12.1, the smacker_decode_tree function in libavcodec/smacker.c does not properly restrict tree recursion, which allows remote attackers to cause a denial of service (bitstream.c:build_table() out-of-bounds read and application crash) via a crafted Smacker stream. | 2017-11-13 | 1 | https://github.com/libav/libav | https://github.com/libav/libav/commit/cd4663dc80323ba64989d0c103d51ad3ee0e9c2f | cd4663dc80323ba64989d0c103d51ad3ee0e9c2f | SINGLE | ['cd4663dc80323ba64989d0c103d51ad3ee0e9c2f'] | {'17b6c7efb471e8ff1b8a7271f6531ba1d52bf69c'} | cd4663dc80323ba64989d0c103d51ad3ee0e9c2f | 1 | 06/21/2012, 14:01:52 | smacker: add sanity check for length in smacker_decode_tree()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Bug-Id: 1098
Cc: libav-stable@libav.org
Signed-off-by: Sean McGovern <gseanmcg@gmail.com> | Michael Niedermayer | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -43,7 +43,7 @@\n \n #define SMKTREE_BITS 9\n #define SMK_NODE 0x80000000\n-\n+#define SMKTREE_DECODE_MAX_RECURSION 32\n \n typedef struct SmackVContext {\n AVCodecContext *avctx;\n@@ -97,6 +97,11 @@ enum SmkBlockTypes {\n static int sm... | c | CWE-119 | [
"libavcodec/smacker.c"
] | libavcodec/smacker.c | 1 |
static int csnmp_read_table(host_definition_t *host, data_definition_t *data) { if (oid_list_todo_num == 0) { /* The request is still empty - so we are finished */ DEBUG("snmp plugin: all variables have left their subtree"); status = 0; break; } res = NULL; status = snmp_sess_s... | static int csnmp_read_table(host_definition_t *host, data_definition_t *data) { if (oid_list_todo_num == 0) { /* The request is still empty - so we are finished */ DEBUG("snmp plugin: all variables have left their subtree"); snmp_free_pdu(req); status = 0; break; } res = NULL... | CVE-2017-16820 | {'CWE-415'} | 10 | {'https://github.com/collectd/collectd/commit/d16c24542b2f96a194d43a73c2e5778822b9cb47'} | nvd | The csnmp_read_table function in snmp.c in the SNMP plugin in collectd before 5.6.3 is susceptible to a double free in a certain error case, which could lead to a crash (or potentially have other impact). | 2017-11-14 | 1 | https://github.com/collectd/collectd | https://github.com/collectd/collectd/commit/d16c24542b2f96a194d43a73c2e5778822b9cb47 | d16c24542b2f96a194d43a73c2e5778822b9cb47 | SINGLE | ['d16c24542b2f96a194d43a73c2e5778822b9cb47'] | {'6c082e955466f0c451d608fb3cbb31481c02fa37'} | d16c24542b2f96a194d43a73c2e5778822b9cb47 | 1 | 05/31/2017, 16:27:13 | snmp plugin: Fix double free of request PDU
snmp_sess_synch_response() always frees request PDU, in both case of request
error and success. If error condition occurs inside of `while (status == 0)`
loop, double free of `req` happens.
Issue: #2291
Signed-off-by: Florian Forster <octo@collectd.org> | Pavel Rochnyack | null | {'additions': 2, 'deletions': 5, 'total': 7} | [
{
"additions": 2,
"changes": 7,
"deletions": 5,
"patch": "@@ -1357,11 +1357,13 @@ static int csnmp_read_table(host_definition_t *host, data_definition_t *data) {\n if (oid_list_todo_num == 0) {\n /* The request is still empty - so we are finished */\n DEBUG(\"snmp plugin: all variabl... | c | CWE-415 | [
"src/snmp.c"
] | src/snmp.c | 1 |
public function dump($value) return $output; } return print_r($value, true); } /** | public function dump($value) return $output; } return htmlspecialchars(print_r($value, true)); } /** | CVE-2017-16880 | {'CWE-79'} | 2.9 | {'https://github.com/filp/whoops/commit/c16791d28d1ca3139e398145f0c6565c523c291a'} | nvd | The dump function in Util/TemplateHelper.php in filp whoops before 2.1.13 has XSS. | 2017-11-17 | 1 | https://github.com/filp/whoops | https://github.com/filp/whoops/commit/c16791d28d1ca3139e398145f0c6565c523c291a | c16791d28d1ca3139e398145f0c6565c523c291a | SINGLE | ['c16791d28d1ca3139e398145f0c6565c523c291a'] | {'1ae2243c0cc959a9a60eefdf0796f6608850402f'} | c16791d28d1ca3139e398145f0c6565c523c291a | 1 | 11/17/2017, 07:26:46 | TemplateHelper: fix XSS if Symfony dumper is not available | Denis Sokolov | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -183,7 +183,7 @@ public function dump($value)\n return $output;\n }\n \n- return print_r($value, true);\n+ return htmlspecialchars(print_r($value, true));\n }\n \n /**",
"path": "src/Whoops/Uti... | php | CWE-79 | [
"src/Whoops/Util/TemplateHelper.php"
] | src/Whoops/Util/TemplateHelper.php | 1 |
public function toJson($allDay = null, $full = false, $time_format = 'H:i') } if (!$this->isPrivate()) { $json->d = $this->description; $json->u = $this->url; $json->uhl = $GLOBALS['injector']->getInstance('Horde_Core_Factory_TextFilter')->filter(... | public function toJson($allDay = null, $full = false, $time_format = 'H:i') } if (!$this->isPrivate()) { $json->d = $this->description; $json->u = htmlentities($this->url); $json->uhl = htmlentities($GLOBALS['injector']->getInstance('Horde_Core_F... | CVE-2017-16906 | {'CWE-79'} | 2.9 | {'https://github.com/horde/kronolith/commit/09d90141292f9ec516a7a2007bf828ce2bbdf60d'} | nvd | In Horde Groupware 5.2.19-5.2.22, there is XSS via the URL field in a "Calendar -> New Event" action. | 2017-11-20 | 1 | https://github.com/horde/kronolith | https://github.com/horde/kronolith/commit/09d90141292f9ec516a7a2007bf828ce2bbdf60d | 09d90141292f9ec516a7a2007bf828ce2bbdf60d | SINGLE | ['09d90141292f9ec516a7a2007bf828ce2bbdf60d'] | {'c6a1c8b82b0d6a4b1e2488c0c21f644a5cab2994'} | 09d90141292f9ec516a7a2007bf828ce2bbdf60d | 1 | 09/25/2018, 16:15:27 | Bug: 14857
Prevent XSS in event's URL field. | Michael J Rubinsky | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -2402,8 +2402,8 @@ public function toJson($allDay = null, $full = false, $time_format = 'H:i')\n }\n if (!$this->isPrivate()) {\n $json->d = $this->description;\n- $json->u = $this->ur... | php | CWE-79 | [
"lib/Event.php"
] | lib/Event.php | 1 |
public function addRow(array $row, $container = '') if (strlen($row['style'])) { $row['style'] .= ';'; } $row['style'] .= 'background-color:' . $row['color'] . ';color:#' . $foreground; if (isset($row['edit'])) { $row['edit... | public function addRow(array $row, $container = '') if (strlen($row['style'])) { $row['style'] .= ';'; } $row['style'] .= 'background-color:' . htmlspecialchars($row['color']) . ';color:#' . $foreground; if (isset($row['edit'])) { ... | CVE-2017-16907 | {'CWE-79'} | 2.9 | {'https://github.com/horde/base/commit/fb2113bbcd04bd4a28c46aad0889fb0a3979a230'} | nvd | In Horde Groupware 5.2.19 and 5.2.21, there is XSS via the Color field in a Create Task List action. | 2017-11-20 | 1 | https://github.com/horde/base | https://github.com/horde/base/commit/fb2113bbcd04bd4a28c46aad0889fb0a3979a230 | fb2113bbcd04bd4a28c46aad0889fb0a3979a230 | SINGLE | ['fb2113bbcd04bd4a28c46aad0889fb0a3979a230'] | {'d3fab31d9e63114104d5e01340ef9ec1f8f4f78b'} | fb2113bbcd04bd4a28c46aad0889fb0a3979a230 | 1 | 09/25/2018, 16:12:35 | Bug: 14857
Escape user supplied color data, preventing XSS vuln. | Michael J Rubinsky | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -221,7 +221,7 @@ public function addRow(array $row, $container = '')\n if (strlen($row['style'])) {\n $row['style'] .= ';';\n }\n- $row['style'] .= 'background-color:' . $row['color']\n+ ... | php | CWE-79 | [
"lib/View/Sidebar.php"
] | lib/View/Sidebar.php | 1 |
KronolithCore = { } $('kronolithCalendarresourcegroupmembers').update(); $H(Kronolith.conf.calendars.resource).each(function(r) { var o = new Element('option', { value: r.value.id }).update(r.value.name); $('kronolithCalendarresourcegroupmembers').insert(o); }); ... | KronolithCore = { } $('kronolithCalendarresourcegroupmembers').update(); $H(Kronolith.conf.calendars.resource).each(function(r) { var o = new Element('option', { value: r.value.id }).update(r.value.name.escapeHTML()); $('kronolithCalendarresourcegroupmembers').insert(o);... | CVE-2017-16908 | {'CWE-79'} | 2.9 | {'https://github.com/horde/kronolith/commit/39f740068ad21618f6f70b6e37855c61cadbd716'} | nvd | In Horde Groupware 5.2.19, there is XSS via the Name field during creation of a new Resource. This can be leveraged for remote code execution after compromising an administrator account, because the CVE-2015-7984 CSRF protection mechanism can then be bypassed. | 2017-11-20 | 1 | https://github.com/horde/kronolith | https://github.com/horde/kronolith/commit/39f740068ad21618f6f70b6e37855c61cadbd716 | 39f740068ad21618f6f70b6e37855c61cadbd716 | SINGLE | ['39f740068ad21618f6f70b6e37855c61cadbd716'] | {'09d90141292f9ec516a7a2007bf828ce2bbdf60d'} | 39f740068ad21618f6f70b6e37855c61cadbd716 | 1 | 09/26/2018, 00:21:56 | Bug: 14857
Escape user-provided resource name when outputting. Prevents XSS vuln. | Michael J Rubinsky | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -3322,7 +3322,7 @@ KronolithCore = {\n }\n $('kronolithCalendarresourcegroupmembers').update();\n $H(Kronolith.conf.calendars.resource).each(function(r) {\n- var o = new Element('option', { value: r.value... | js | CWE-79 | [
"js/kronolith.js"
] | js/kronolith.js | 1 |
static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1]; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; } static... | static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr static int xfrm_dump_policy_done(struct netlink_callback *cb) { struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args; struct net *net = sock_net(cb->skb->sk); xfrm_policy_walk_done(walk, net); return 0; } static int ... | CVE-2017-16939 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/1137b5e2529a8f5ca8ee709288ecba3e68044df2'} | nvd | The XFRM dump policy implementation in net/xfrm/xfrm_user.c in the Linux kernel before 4.13.11 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted SO_RCVBUF setsockopt system call in conjunction with XFRM_MSG_GETPOLICY Netlink messages. | 2017-11-24 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1137b5e2529a8f5ca8ee709288ecba3e68044df2 | 1137b5e2529a8f5ca8ee709288ecba3e68044df2 | SINGLE | ['1137b5e2529a8f5ca8ee709288ecba3e68044df2'] | {'10a7ef33679073d13bf1dd05e3f1b7912f999543'} | 1137b5e2529a8f5ca8ee709288ecba3e68044df2 | 1 | 10/19/2017, 12:51:10 | ipsec: Fix aborted xfrm policy dump crash
An independent security researcher, Mohamed Ghannam, has reported
this vulnerability to Beyond Security's SecuriTeam Secure Disclosure
program.
The xfrm_dump_policy_done function expects xfrm_dump_policy to
have been called at least once or it will crash. This can be
trigger... | Herbert Xu | null | {'additions': 15, 'deletions': 10, 'total': 25} | [
{
"additions": 15,
"changes": 25,
"deletions": 10,
"patch": "@@ -1693,32 +1693,34 @@ static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr\n \n static int xfrm_dump_policy_done(struct netlink_callback *cb)\n {\n-\tstruct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)... | c | CWE-416 | [
"net/xfrm/xfrm_user.c"
] | net/xfrm/xfrm_user.c | 1 |
static int walk_hugetlb_range(unsigned long addr, unsigned long end, do { next = hugetlb_entry_end(h, addr, end); pte = huge_pte_offset(walk->mm, addr & hmask, sz); if (pte && walk->hugetlb_entry) err = walk->hugetlb_entry(pte, hmask, addr, next, walk); if (err) break; } while (addr = next, addr != end... | static int walk_hugetlb_range(unsigned long addr, unsigned long end, do { next = hugetlb_entry_end(h, addr, end); pte = huge_pte_offset(walk->mm, addr & hmask, sz); if (pte) err = walk->hugetlb_entry(pte, hmask, addr, next, walk); else if (walk->pte_hole) err = walk->pte_hole(addr, next, walk); if (... | CVE-2017-16994 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/373c4557d2aa362702c4c2d41288fb1e54990b7c'} | nvd | The walk_hugetlb_range function in mm/pagewalk.c in the Linux kernel before 4.14.2 mishandles holes in hugetlb ranges, which allows local users to obtain sensitive information from uninitialized kernel memory via crafted use of the mincore() system call. | 2017-11-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/373c4557d2aa362702c4c2d41288fb1e54990b7c | 373c4557d2aa362702c4c2d41288fb1e54990b7c | SINGLE | ['373c4557d2aa362702c4c2d41288fb1e54990b7c'] | {'5bbcc0f595fadb4cac0eddc4401035ec0bd95b09'} | 373c4557d2aa362702c4c2d41288fb1e54990b7c | 1 | 11/14/2017, 00:03:44 | mm/pagewalk.c: report holes in hugetlb ranges
This matters at least for the mincore syscall, which will otherwise copy
uninitialized memory from the page allocator to userspace. It is
probably also a correctness error for /proc/$pid/pagemap, but I haven't
tested that.
Removing the `walk->hugetlb_entry` condition in ... | Jann Horn | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -188,8 +188,12 @@ static int walk_hugetlb_range(unsigned long addr, unsigned long end,\n \tdo {\n \t\tnext = hugetlb_entry_end(h, addr, end);\n \t\tpte = huge_pte_offset(walk->mm, addr & hmask, sz);\n-\t\tif (pte && walk->hugetlb_entry)\n+... | c | CWE-200 | [
"mm/pagewalk.c"
] | mm/pagewalk.c | 1 |
static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) * remember the value we stored into this reg */ regs[insn->dst_reg].type = SCALAR_VALUE; __mark_reg_known(regs + insn->dst_reg, insn->imm); } } else if (opcode > BPF_END) { | static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn) * remember the value we stored into this reg */ regs[insn->dst_reg].type = SCALAR_VALUE; if (BPF_CLASS(insn->code) == BPF_ALU64) { __mark_reg_known(regs + insn->dst_reg, insn->imm); } else { __mark_reg_known(re... | CVE-2017-16995 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/95a762e2c8c942780948091f8f2a4f32fce1ac6f'} | nvd | The check_alu_op function in kernel/bpf/verifier.c in the Linux kernel through 4.4 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging incorrect sign extension. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/95a762e2c8c942780948091f8f2a4f32fce1ac6f | 95a762e2c8c942780948091f8f2a4f32fce1ac6f | SINGLE | ['95a762e2c8c942780948091f8f2a4f32fce1ac6f'] | {'4374f256ce8182019353c0c639bb8d0695b4c941'} | 95a762e2c8c942780948091f8f2a4f32fce1ac6f | 1 | 12/19/2017, 04:11:54 | bpf: fix incorrect sign extension in check_alu_op()
Distinguish between
BPF_ALU64|BPF_MOV|BPF_K (load 32-bit immediate, sign-extended to 64-bit)
and BPF_ALU|BPF_MOV|BPF_K (load 32-bit immediate, zero-padded to 64-bit);
only perform sign extension in the first case.
Starting with v4.14, this is exploitable by unprivil... | Jann Horn | {'com_1': {'author': 'zcyc', 'datetime': '04/01/2018, 07:25:26', 'body': '-\t\t\t__mark_reg_known(regs + insn->dst_reg, insn->imm);\r\n+\t\t\tif (BPF_CLASS(insn->code) == BPF_ALU64) {\r\n+\t\t\t\t__mark_reg_known(regs + insn->dst_reg,insn->imm);\r\n+\t\t\t} else {\r\n+\t\t\t\t__mark_reg_known(regs + insn->dst_reg, (u32... | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -2408,7 +2408,13 @@ static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn)\n \t\t\t * remember the value we stored into this reg\n \t\t\t */\n \t\t\tregs[insn->dst_reg].type = SCALAR_VALUE;\n-\t\t\t__mark_reg_known(re... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static int check_ptr_alignment(struct bpf_verifier_env *env, strict); } /* check whether memory at (regno + off) is accessible for t = (read | write) * if t==write, value_regno is a register which value is stored into memory * if t==read, value_regno is a register which will receive the value from memory st... | static int check_ptr_alignment(struct bpf_verifier_env *env, strict); } /* truncate register to smaller size (in bytes) * must be called with size < BPF_REG_SIZE */ static void coerce_reg_to_size(struct bpf_reg_state *reg, int size) { u64 mask; /* clear high bits in bit representation */ reg->var_off = ... | CVE-2017-16996 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/0c17d1d2c61936401f4702e1846e2c19b200f958'} | nvd | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging register truncation mishandling. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/0c17d1d2c61936401f4702e1846e2c19b200f958 | 0c17d1d2c61936401f4702e1846e2c19b200f958 | SINGLE | ['0c17d1d2c61936401f4702e1846e2c19b200f958'] | {'95a762e2c8c942780948091f8f2a4f32fce1ac6f'} | 0c17d1d2c61936401f4702e1846e2c19b200f958 | 1 | 12/19/2017, 04:11:55 | bpf: fix incorrect tracking of register size truncation
Properly handle register truncation to a smaller size.
The old code first mirrors the clearing of the high 32 bits in the bitwise
tristate representation, which is correct. But then, it computes the new
arithmetic bounds as the intersection between the old arith... | Jann Horn | null | {'additions': 27, 'deletions': 17, 'total': 44} | [
{
"additions": 27,
"changes": 44,
"deletions": 17,
"patch": "@@ -1067,6 +1067,29 @@ static int check_ptr_alignment(struct bpf_verifier_env *env,\n \t\t\t\t\t strict);\n }\n \n+/* truncate register to smaller size (in bytes)\n+ * must be called with size < BPF_REG_SIZE\n+ */\n+static void coerce_re... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); mmu_notifier_mm_init(mm); init_tlb_flush_pending(mm); #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !USE_SPLIT_PMD_PTLOCKS | static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p, mm_init_cpumask(mm); mm_init_aio(mm); mm_init_owner(mm, p); RCU_INIT_POINTER(mm->exe_file, NULL); mmu_notifier_mm_init(mm); init_tlb_flush_pending(mm); #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && !USE_SPLIT_PMD_PTLOCKS | CVE-2017-17052 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/2b7e8665b4ff51c034c55df3cff76518d1a9ee3a'} | nvd | The mm_init function in kernel/fork.c in the Linux kernel before 4.12.10 does not clear the ->exe_file member of a new process's mm_struct, allowing a local attacker to achieve a use-after-free or possibly have unspecified other impact by running a specially crafted program. | 2017-11-29 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2b7e8665b4ff51c034c55df3cff76518d1a9ee3a | 2b7e8665b4ff51c034c55df3cff76518d1a9ee3a | SINGLE | ['2b7e8665b4ff51c034c55df3cff76518d1a9ee3a'] | {'263630e8d176d87308481ebdcd78ef9426739c6b'} | 2b7e8665b4ff51c034c55df3cff76518d1a9ee3a | 1 | 08/25/2017, 22:55:43 | fork: fix incorrect fput of ->exe_file causing use-after-free
Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for
write killable") made it possible to kill a forking task while it is
waiting to acquire its ->mmap_sem for write, in dup_mmap().
However, it was overlooked that this introduced an new erro... | Eric Biggers | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -806,6 +806,7 @@ static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p,\n \tmm_init_cpumask(mm);\n \tmm_init_aio(mm);\n \tmm_init_owner(mm, p);\n+\tRCU_INIT_POINTER(mm->exe_file, NULL);\n \tmmu_notifier_mm_init(mm);\... | c | CWE-416 | [
"kernel/fork.c"
] | kernel/fork.c | 1 |
_kdc_as_rep(kdc_request_t r, /* * In case of a non proxy error, build an error message. */ if(ret != 0 && ret != HDB_ERR_NOT_FOUND_HERE && reply->length == 0) { ret = _kdc_fast_mk_error(context, r, &error_method, r->armor_crypto, &req->req_body, ret, r->e_text, r->server_pri... | _kdc_as_rep(kdc_request_t r, /* * In case of a non proxy error, build an error message. */ if (ret != 0 && ret != HDB_ERR_NOT_FOUND_HERE && reply->length == 0) { ret = _kdc_fast_mk_error(context, r, &error_method, r->armor_crypto, &req->req_body, ret, r->e_text, r->server_pr... | CVE-2017-17439 | {'CWE-476'} | 2.9 | {'https://github.com/heimdal/heimdal/commit/1a6a6e462dc2ac6111f9e02c6852ddec4849b887'} | nvd | In Heimdal through 7.4, remote unauthenticated attackers are able to crash the KDC by sending a crafted UDP packet containing empty data fields for client name or realm. The parser would unconditionally dereference NULL pointers in that case, leading to a segmentation fault. This is related to the _kdc_as_rep function ... | 2017-12-06 | 1 | https://github.com/heimdal/heimdal | https://github.com/heimdal/heimdal/commit/1a6a6e462dc2ac6111f9e02c6852ddec4849b887 | 1a6a6e462dc2ac6111f9e02c6852ddec4849b887 | SINGLE | ['1a6a6e462dc2ac6111f9e02c6852ddec4849b887'] | {'abee4b3f6851914d47740a1d96beafd6cc0ee9bf'} | 1a6a6e462dc2ac6111f9e02c6852ddec4849b887 | 1 | 12/05/2017, 23:49:50 | Security: Avoid NULL structure pointer member dereference
This can happen in the error path when processing malformed AS
requests with a NULL client name. Bug originally introduced on
Fri Feb 13 09:26:01 2015 +0100 in commit:
a873e21d7c06f22943a90a41dc733ae76799390d
kdc: base _kdc_fast_mk_error() on krb5_mk... | Viktor Dukhovni | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -2232,15 +2232,17 @@ _kdc_as_rep(kdc_request_t r,\n /*\n * In case of a non proxy error, build an error message.\n */\n- if(ret != 0 && ret != HDB_ERR_NOT_FOUND_HERE && reply->length == 0) {\n+ if (ret != 0 && ret != HD... | c | CWE-476 | [
"kdc/kerberos5.c"
] | kdc/kerberos5.c | 1 |
static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) int err; struct ip_options_data opt_copy; struct raw_frag_vec rfv; err = -EMSGSIZE; if (len > 0xFFFF) goto out; /* * Check the flags. */ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) /* Linux does not mang... | static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) int err; struct ip_options_data opt_copy; struct raw_frag_vec rfv; int hdrincl; err = -EMSGSIZE; if (len > 0xFFFF) goto out; /* hdrincl should be READ_ONCE(inet->hdrincl) * but READ_ONCE() doesn't work with bit fields */ hdrincl = ... | CVE-2017-17712 | {'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/8f659a03a0ba9289b9aeb9b4470e6fb263d6f483'} | nvd | The raw_sendmsg() function in net/ipv4/raw.c in the Linux kernel through 4.14.6 has a race condition in inet->hdrincl that leads to uninitialized stack pointer usage; this allows a local user to execute code and gain privileges. | 2017-12-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 | 8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 | SINGLE | ['8f659a03a0ba9289b9aeb9b4470e6fb263d6f483'] | {'93c647643b48f0131f02e45da3bd367d80443291'} | 8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 | 1 | 12/10/2017, 03:50:58 | net: ipv4: fix for a race condition in raw_sendmsg
inet->hdrincl is racy, and could lead to uninitialized stack pointer
usage, so its value should be read only once.
Fixes: c008ba5bdc9f ("ipv4: Avoid reading user iov twice after raw_probe_proto_opt")
Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com>
Reviewed-by... | Mohamed Ghannam | null | {'additions': 10, 'deletions': 5, 'total': 15} | [
{
"additions": 10,
"changes": 15,
"deletions": 5,
"patch": "@@ -513,11 +513,16 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)\n \tint err;\n \tstruct ip_options_data opt_copy;\n \tstruct raw_frag_vec rfv;\n+\tint hdrincl;\n \n \terr = -EMSGSIZE;\n \tif (len > 0xFFFF)\n \t... | c | CWE-362 | [
"net/ipv4/raw.c"
] | net/ipv4/raw.c | 1 |
function parse_texte_code($texte, $code_before) * * @params array $matches, array from preg_replace_callback * @return string */ function markup_clean_href($matches) { // var_dump($matches); $allowed = array('http://', 'https://', 'ftp://'); // if not a valid url, return the string if (( ... | function parse_texte_code($texte, $code_before) * * @params array $matches, array from preg_replace_callback * @return string * * dirty fix, to do : review the htmlspecialchars policy before this function */ function markup_clean_href($matches) { $allowed = array('http://', 'https://', 'ftp://'); // rem... | CVE-2017-17792 | {'CWE-79'} | 2.9 | {'https://github.com/BlogoText/blogotext/commit/7c6f74e43008b2397160775696c67acbab87911d'} | nvd | Cross site scripting (XSS) vulnerability in the markup_clean_href function in inc/conv.php in BlogoText through 3.7.6 allows remote attackers to inject arbitrary JavaScript via a comment. | 2017-12-20 | 1 | https://github.com/BlogoText/blogotext | https://github.com/BlogoText/blogotext/commit/7c6f74e43008b2397160775696c67acbab87911d | 7c6f74e43008b2397160775696c67acbab87911d | SINGLE | ['7c6f74e43008b2397160775696c67acbab87911d'] | {'101dc1d37010a1d877d6961ed2f32d089c708e91'} | 7c6f74e43008b2397160775696c67acbab87911d | 1 | 12/11/2017, 22:46:20 | fix security issue with comment | RemRem | null | {'additions': 10, 'deletions': 5, 'total': 15} | [
{
"additions": 10,
"changes": 15,
"deletions": 5,
"patch": "@@ -122,16 +122,21 @@ function parse_texte_code($texte, $code_before)\n *\n * @params array $matches, array from preg_replace_callback\n * @return string\n+ *\n+ * dirty fix, to do : review the htmlspecialchars policy before this functio... | php | CWE-79 | [
"inc/conv.php"
] | inc/conv.php | 1 |
function addFolder2zip($zip, $folder) */ function creer_fichier_zip($folders) { $zipfile = 'archive_site-'.date('Ymd').'-'.substr(md5(rand(10, 99)), 3, 5).'.zip'; $zip = new ZipArchive; if ($zip->open(DIR_BACKUP.$zipfile, ZipArchive::CREATE) === true) { foreach ($folders as $folder) { | function addFolder2zip($zip, $folder) */ function creer_fichier_zip($folders) { // fix on windows server, file can be found using "archiv~1.zip" as file name in URL // $zipfile = 'archive_site-'.date('Ymd').'-'.substr(md5(rand(10, 99)), 3, 5).'.zip'; $zipfile = substr(md5(rand(10, 99)), 3, 5).'-archive_si... | CVE-2017-17793 | {'CWE-200'} | 2.9 | {'https://github.com/BlogoText/blogotext/commit/101dc1d37010a1d877d6961ed2f32d089c708e91'} | nvd | Information Disclosure vulnerability in creer_fichier_zip in admin/maintenance.php in BlogoText through 3.7.6 allows remote attackers to defeat a filename-randomization protection mechanism, and read backup archives on Windows servers, by providing the archiv~1.zip name (aka an 8.3 filename). | 2017-12-20 | 1 | https://github.com/BlogoText/blogotext | https://github.com/BlogoText/blogotext/commit/101dc1d37010a1d877d6961ed2f32d089c708e91 | 101dc1d37010a1d877d6961ed2f32d089c708e91 | SINGLE | ['101dc1d37010a1d877d6961ed2f32d089c708e91'] | {'256041d8cab2fdc50678f4d49d916fea25cdb4fd'} | 101dc1d37010a1d877d6961ed2f32d089c708e91 | 1 | 12/11/2017, 22:45:04 | fix windows server zip file name for backup | RemRem | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -337,7 +337,9 @@ function addFolder2zip($zip, $folder)\n */\n function creer_fichier_zip($folders)\n {\n- $zipfile = 'archive_site-'.date('Ymd').'-'.substr(md5(rand(10, 99)), 3, 5).'.zip';\n+ // fix on windows server, file can be fo... | php | CWE-200 | [
"admin/maintenance.php"
] | admin/maintenance.php | 1 |
$sLimit = ""; if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' ) { $sLimit = "LIMIT ".pwg_db_real_escape_string( $_REQUEST['iDisplayStart'] ).", ". pwg_db_real_escape_string( $_REQUEST['iDisplayLength'] ); } $sOrder = "ORDER BY "; for ( $i=0 ; $i<intval( $_REQUEST['iSortin... | $sLimit = ""; if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' ) { $sLimit = "LIMIT ".$_REQUEST['iDisplayStart'].", ".$_REQUEST['iDisplayLength']; } $sOrder = "ORDER BY "; for ( $i=0 ; $i<intval( $_REQUEST['iSortingCols'] ) ; $i++ ) { check_input_parameter('iSortCol_'.$i... | CVE-2017-17822 | {'CWE-89'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/33a03e9afb8fb00c9d8f480424d549311fe03d40'} | nvd | The List Users API of Piwigo 2.9.2 is vulnerable to SQL Injection via the /admin/user_list_backend.php sSortDir_0 parameter. An attacker can exploit this to gain access to the data in a connected MySQL database. | 2017-12-21 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/33a03e9afb8fb00c9d8f480424d549311fe03d40 | 33a03e9afb8fb00c9d8f480424d549311fe03d40 | SINGLE | ['33a03e9afb8fb00c9d8f480424d549311fe03d40'] | {'045d98ab003c7e75d7f6b3f6a540cec63b916ce5'} | 33a03e9afb8fb00c9d8f480424d549311fe03d40 | 1 | 12/18/2017, 13:02:52 | (cp 1da9d6a) fixes #823 add input user check to avoid SQLi on users list | plegall | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -67,8 +67,7 @@\n $sLimit = \"\";\n if ( isset( $_REQUEST['iDisplayStart'] ) && $_REQUEST['iDisplayLength'] != '-1' )\n {\n- $sLimit = \"LIMIT \".pwg_db_real_escape_string( $_REQUEST['iDisplayStart'] ).\", \".\n- pwg_db_real_escape_str... | php | CWE-89 | [
"admin/user_list_backend.php"
] | admin/user_list_backend.php | 1 |
{ if ( !empty($_POST['order_by']) ) { $used = array(); foreach ($_POST['order_by'] as $i => $val) { | { if ( !empty($_POST['order_by']) ) { check_input_parameter('order_by', $_POST, true, '/^('.implode('|', array_keys($sort_fields)).')$/'); $used = array(); foreach ($_POST['order_by'] as $i => $val) { | CVE-2017-17823 | {'CWE-89'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/91ef7909a5c51203f330cbecf986472900b60983'} | nvd | The Configuration component of Piwigo 2.9.2 is vulnerable to SQL Injection via the admin/configuration.php order_by array parameter. An attacker can exploit this to gain access to the data in a connected MySQL database. | 2017-12-21 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/91ef7909a5c51203f330cbecf986472900b60983 | 91ef7909a5c51203f330cbecf986472900b60983 | SINGLE | ['91ef7909a5c51203f330cbecf986472900b60983'] | {'f7c8e0a947a857ff5d31dafd03842df41959b84c'} | 91ef7909a5c51203f330cbecf986472900b60983 | 1 | 12/18/2017, 16:09:56 | (cp 9671454) fixes #826, check input parameter order_by in configuration | plegall | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -161,6 +161,8 @@\n {\n if ( !empty($_POST['order_by']) )\n {\n+ check_input_parameter('order_by', $_POST, true, '/^('.implode('|', array_keys($sort_fields)).')$/');\n+\n $used = array();\n ... | php | CWE-89 | [
"admin/configuration.php"
] | admin/configuration.php | 1 |
if (isset($_POST['submit'])) { $collection = explode(',', $_POST['element_ids']); $datas = array(); | if (isset($_POST['submit'])) { check_input_parameter('element_ids', $_POST, false, '/^\d+(,\d+)*$/'); $collection = explode(',', $_POST['element_ids']); $datas = array(); | CVE-2017-17824 | {'CWE-89'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/f7c8e0a947a857ff5d31dafd03842df41959b84c'} | nvd | The Batch Manager component of Piwigo 2.9.2 is vulnerable to SQL Injection via the admin/batch_manager_unit.php element_ids parameter in unit mode. An attacker can exploit this to gain access to the data in a connected MySQL database. | 2017-12-21 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/f7c8e0a947a857ff5d31dafd03842df41959b84c | f7c8e0a947a857ff5d31dafd03842df41959b84c | SINGLE | ['f7c8e0a947a857ff5d31dafd03842df41959b84c'] | {'c3b4c6f7f0ddeaea492080fb8211d7b4cfedaf6f'} | f7c8e0a947a857ff5d31dafd03842df41959b84c | 1 | 12/18/2017, 15:45:56 | (cp 9028c75) fixes #825, check user input on Batch Manager, unit mode, to prevent SQL injection | plegall | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -47,6 +47,7 @@\n \n if (isset($_POST['submit']))\n {\n+ check_input_parameter('element_ids', $_POST, false, '/^\\d+(,\\d+)*$/');\n $collection = explode(',', $_POST['element_ids']);\n \n $datas = array();",
"path": "admin/batch_ma... | php | CWE-89 | [
"admin/batch_manager_unit.php"
] | admin/batch_manager_unit.php | 1 |
static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, return 0; } static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, struct bpf_insn *insn, struct bpf_reg_state *dst_reg, static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, bool src_known, dst_known; s... | static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env, return 0; } /* WARNING: This function does calculations on 64-bit values, but the actual * execution may occur on 32-bit values. Therefore, things like bitshifts * need extra checks in the 32-bit case. */ static int adjust_scalar_min_max_vals(struct... | CVE-2017-17852 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/468f6eafa6c44cb2c5d8aad35e12f06c240a812a'} | nvd | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging mishandling of 32-bit ALU ops. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/468f6eafa6c44cb2c5d8aad35e12f06c240a812a | 468f6eafa6c44cb2c5d8aad35e12f06c240a812a | SINGLE | ['468f6eafa6c44cb2c5d8aad35e12f06c240a812a'] | {'0c17d1d2c61936401f4702e1846e2c19b200f958'} | 468f6eafa6c44cb2c5d8aad35e12f06c240a812a | 1 | 12/19/2017, 04:11:56 | bpf: fix 32-bit ALU op verification
32-bit ALU ops operate on 32-bit values and have 32-bit outputs.
Adjust the verifier accordingly.
Fixes: f1174f77b50c ("bpf/verifier: rework value tracking")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkman... | Jann Horn | null | {'additions': 17, 'deletions': 11, 'total': 28} | [
{
"additions": 17,
"changes": 28,
"deletions": 11,
"patch": "@@ -2017,6 +2017,10 @@ static int adjust_ptr_min_max_vals(struct bpf_verifier_env *env,\n \treturn 0;\n }\n \n+/* WARNING: This function does calculations on 64-bit values, but the actual\n+ * execution may occur on 32-bit values. Therefor... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, mark_reg_unknown(env, regs, insn->dst_reg); break; } /* BPF_RSH is an unsigned shift, so make the appropriate casts */ if (dst_reg->smin_value < 0) { if (umin_val) { /* Sign bit will be cleared */ dst_reg->smin_value = 0; } e... | static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env, mark_reg_unknown(env, regs, insn->dst_reg); break; } /* BPF_RSH is an unsigned shift. If the value in dst_reg might * be negative, then either: * 1) src_reg might be zero, so the sign bit of the result is * unknown, so we lose o... | CVE-2017-17853 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/4374f256ce8182019353c0c639bb8d0695b4c941'} | nvd | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging incorrect BPF_RSH signed bounds calculations. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4374f256ce8182019353c0c639bb8d0695b4c941 | 4374f256ce8182019353c0c639bb8d0695b4c941 | SINGLE | ['4374f256ce8182019353c0c639bb8d0695b4c941'] | {'19c832ed9b8f7b49fa5eeef06b4338af5fe5c1dc'} | 4374f256ce8182019353c0c639bb8d0695b4c941 | 1 | 12/19/2017, 04:11:53 | bpf/verifier: fix bounds calculation on BPF_RSH
Incorrect signed bounds were being computed.
If the old upper signed bound was positive and the old lower signed bound was
negative, this could cause the new upper signed bound to be too low,
leading to security issues.
Fixes: b03c9f9fdc37 ("bpf/verifier: track signed a... | Edward Cree | null | {'additions': 16, 'deletions': 14, 'total': 30} | [
{
"additions": 16,
"changes": 30,
"deletions": 14,
"patch": "@@ -2190,20 +2190,22 @@ static int adjust_scalar_min_max_vals(struct bpf_verifier_env *env,\n \t\t\tmark_reg_unknown(env, regs, insn->dst_reg);\n \t\t\tbreak;\n \t\t}\n-\t\t/* BPF_RSH is an unsigned shift, so make the appropriate casts */\... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur, return range_within(rold, rcur) && tnum_in(rold->var_off, rcur->var_off); } else { /* if we knew anything about the old value, we're not * equal, because we can't know anything about the * scalar value of the pointer ... | static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur, return range_within(rold, rcur) && tnum_in(rold->var_off, rcur->var_off); } else { /* We're trying to use a pointer in place of a scalar. * Even if the scalar was unbounded, this could lead to * pointer leaks because ... | CVE-2017-17855 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/179d1c5602997fef5a940c6ddcf31212cbfebd14'} | nvd | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging improper use of pointers in place of scalars. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/179d1c5602997fef5a940c6ddcf31212cbfebd14 | 179d1c5602997fef5a940c6ddcf31212cbfebd14 | SINGLE | ['179d1c5602997fef5a940c6ddcf31212cbfebd14'] | {'a5ec6ae161d72f01411169a938fa5f8baea16e8f'} | 179d1c5602997fef5a940c6ddcf31212cbfebd14 | 1 | 12/19/2017, 04:11:59 | bpf: don't prune branches when a scalar is replaced with a pointer
This could be made safe by passing through a reference to env and checking
for env->allow_ptr_leaks, but it would only work one way and is probably
not worth the hassle - not doing it will not directly lead to program
rejection.
Fixes: f1174f77b50c ("... | Jann Horn | null | {'additions': 7, 'deletions': 8, 'total': 15} | [
{
"additions": 7,
"changes": 15,
"deletions": 8,
"patch": "@@ -3467,15 +3467,14 @@ static bool regsafe(struct bpf_reg_state *rold, struct bpf_reg_state *rcur,\n \t\t\treturn range_within(rold, rcur) &&\n \t\t\t tnum_in(rold->var_off, rcur->var_off);\n \t\t} else {\n-\t\t\t/* if we knew anythin... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static int check_ptr_alignment(struct bpf_verifier_env *env, break; case PTR_TO_STACK: pointer_desc = "stack "; break; default: break; | static int check_ptr_alignment(struct bpf_verifier_env *env, break; case PTR_TO_STACK: pointer_desc = "stack "; /* The stack spill tracking logic in check_stack_write() * and check_stack_read() relies on stack accesses being * aligned. */ strict = true; break; default: break; | CVE-2017-17856 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/a5ec6ae161d72f01411169a938fa5f8baea16e8f'} | nvd | kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging the lack of stack-pointer alignment enforcement. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/a5ec6ae161d72f01411169a938fa5f8baea16e8f | a5ec6ae161d72f01411169a938fa5f8baea16e8f | SINGLE | ['a5ec6ae161d72f01411169a938fa5f8baea16e8f'] | {'ea25f914dc164c8d56b36147ecc86bc65f83c469'} | a5ec6ae161d72f01411169a938fa5f8baea16e8f | 1 | 12/19/2017, 04:11:58 | bpf: force strict alignment checks for stack pointers
Force strict alignment checks for stack pointers because the tracking of
stack spills relies on it; unaligned stack accesses can lead to corruption
of spilled registers, which is exploitable.
Fixes: f1174f77b50c ("bpf/verifier: rework value tracking")
Signed-off-b... | Jann Horn | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -1059,6 +1059,11 @@ static int check_ptr_alignment(struct bpf_verifier_env *env,\n \t\tbreak;\n \tcase PTR_TO_STACK:\n \t\tpointer_desc = \"stack \";\n+\t\t/* The stack spill tracking logic in check_stack_write()\n+\t\t * and check_stack_r... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
static int check_stack_boundary(struct bpf_verifier_env *env, int regno, tnum_strn(tn_buf, sizeof(tn_buf), regs[regno].var_off); verbose(env, "invalid variable stack read R%d var_off=%s\n", regno, tn_buf); } off = regs[regno].off + regs[regno].var_off.value; if (off >= 0 || off < -MAX_BPF_STACK || off + acce... | static int check_stack_boundary(struct bpf_verifier_env *env, int regno, tnum_strn(tn_buf, sizeof(tn_buf), regs[regno].var_off); verbose(env, "invalid variable stack read R%d var_off=%s\n", regno, tn_buf); return -EACCES; } off = regs[regno].off + regs[regno].var_off.value; if (off >= 0 || off < -MAX_BPF_S... | CVE-2017-17857 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/ea25f914dc164c8d56b36147ecc86bc65f83c469'} | nvd | The check_stack_boundary function in kernel/bpf/verifier.c in the Linux kernel through 4.14.8 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging mishandling of invalid variable stack read operations. | 2017-12-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ea25f914dc164c8d56b36147ecc86bc65f83c469 | ea25f914dc164c8d56b36147ecc86bc65f83c469 | SINGLE | ['ea25f914dc164c8d56b36147ecc86bc65f83c469'] | {'468f6eafa6c44cb2c5d8aad35e12f06c240a812a'} | ea25f914dc164c8d56b36147ecc86bc65f83c469 | 1 | 12/19/2017, 04:11:57 | bpf: fix missing error return in check_stack_boundary()
Prevent indirect stack accesses at non-constant addresses, which would
permit reading and corrupting spilled pointers.
Fixes: f1174f77b50c ("bpf/verifier: rework value tracking")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Alexei Starovoitov <ast@... | Jann Horn | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -1303,6 +1303,7 @@ static int check_stack_boundary(struct bpf_verifier_env *env, int regno,\n \t\ttnum_strn(tn_buf, sizeof(tn_buf), regs[regno].var_off);\n \t\tverbose(env, \"invalid variable stack read R%d var_off=%s\\n\",\n \t\t\tregno, ... | c | CWE-119 | [
"kernel/bpf/verifier.c"
] | kernel/bpf/verifier.c | 1 |
tcpmss_mangle_packet(struct sk_buff *skb, tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); tcp_hdrlen = tcph->doff * 4; if (len < tcp_hdrlen) return -1; if (info->mss == XT_TCPMSS_CLAMP_PMTU) { tcpmss_mangle_packet(struct sk_buff *skb, if (len > tcp_hdrlen) return 0; /* * MSS Option not foun... | tcpmss_mangle_packet(struct sk_buff *skb, tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff); tcp_hdrlen = tcph->doff * 4; if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) return -1; if (info->mss == XT_TCPMSS_CLAMP_PMTU) { tcpmss_mangle_packet(struct sk_buff *skb, if (len > tcp_hdrlen) ... | CVE-2017-18017 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/2638fd0f92d4397884fd991d8f4925cb3f081901'} | nvd | The tcpmss_mangle_packet function in net/netfilter/xt_TCPMSS.c in the Linux kernel before 4.11, and 4.9.x before 4.9.36, allows remote attackers to cause a denial of service (use-after-free and memory corruption) or possibly have unspecified other impact by leveraging the presence of xt_TCPMSS in an iptables action. | 2018-01-03 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2638fd0f92d4397884fd991d8f4925cb3f081901 | 2638fd0f92d4397884fd991d8f4925cb3f081901 | SINGLE | ['2638fd0f92d4397884fd991d8f4925cb3f081901'] | {'0b9aefea860063bb39e36bd7fe6c7087fed0ba87'} | 2638fd0f92d4397884fd991d8f4925cb3f081901 | 1 | 04/03/2017, 17:55:11 | netfilter: xt_TCPMSS: add more sanity tests on tcph->doff
Denys provided an awesome KASAN report pointing to an use
after free in xt_TCPMSS
I have provided three patches to fix this issue, either in xt_TCPMSS or
in xt_tcpudp.c. It seems xt_TCPMSS patch has the smallest possible
impact.
Signed-off-by: Eric Dumazet <e... | Eric Dumazet | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -104,7 +104,7 @@ tcpmss_mangle_packet(struct sk_buff *skb,\n \ttcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff);\n \ttcp_hdrlen = tcph->doff * 4;\n \n-\tif (len < tcp_hdrlen)\n+\tif (len < tcp_hdrlen || tcp_hdrlen < sizeof(struc... | c | CWE-416 | [
"net/netfilter/xt_TCPMSS.c"
] | net/netfilter/xt_TCPMSS.c | 1 |
static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = true; mb(); return 0; } static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; port->exists = false; /* * We synchronize with both AUX and KBD IRQs because there is ... | static int i8042_start(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->exists = true; spin_unlock_irq(&i8042_lock); return 0; } static void i8042_stop(struct serio *serio) { struct i8042_port *port = serio->port_data; spin_lock_irq(&i8042_lock); port->ex... | CVE-2017-18079 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/340d394a789518018f834ff70f7534fc463d3226'} | nvd | drivers/input/serio/i8042.c in the Linux kernel before 4.12.4 allows attackers to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact because the port->exists value can change after it is validated. | 2018-01-29 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/340d394a789518018f834ff70f7534fc463d3226 | 340d394a789518018f834ff70f7534fc463d3226 | SINGLE | ['340d394a789518018f834ff70f7534fc463d3226'] | {'0f107573da417c7f5c6d3a0160ebacc3adb019c4'} | 340d394a789518018f834ff70f7534fc463d3226 | 1 | 07/02/2017, 22:11:10 | Input: i8042 - fix crash at boot time
The driver checks port->exists twice in i8042_interrupt(), first when
trying to assign temporary "serio" variable, and second time when deciding
whether it should call serio_interrupt(). The value of port->exists may
change between the 2 checks, and we may end up calling serio_int... | Chen Hong | null | {'additions': 9, 'deletions': 3, 'total': 12} | [
{
"additions": 9,
"changes": 12,
"deletions": 3,
"patch": "@@ -436,8 +436,10 @@ static int i8042_start(struct serio *serio)\n {\n \tstruct i8042_port *port = serio->port_data;\n \n+\tspin_lock_irq(&i8042_lock);\n \tport->exists = true;\n-\tmb();\n+\tspin_unlock_irq(&i8042_lock);\n+\n \treturn 0;\n }... | c | CWE-476 | [
"drivers/input/serio/i8042.c"
] | drivers/input/serio/i8042.c | 1 |
read_gif(Gif_Reader *grr, int read_flags, Gif_DeleteArray(gfc.suffix); Gif_DeleteArray(gfc.length); gfc.gfi = 0; if (gfs) gfs->errors = gfc.errors[1]; | read_gif(Gif_Reader *grr, int read_flags, Gif_DeleteArray(gfc.suffix); Gif_DeleteArray(gfc.length); gfc.gfi = 0; last_name = 0; if (gfs) gfs->errors = gfc.errors[1]; | CVE-2017-18120 | {'CWE-415'} | 6.4 | {'https://github.com/kohler/gifsicle/commit/118a46090c50829dc543179019e6140e1235f909'} | nvd | A double-free bug in the read_gif function in gifread.c in gifsicle 1.90 allows a remote attacker to cause a denial-of-service attack or unspecified other impact via a maliciously crafted file, because last_name is mishandled, a different vulnerability than CVE-2017-1000421. | 2018-02-02 | 1 | https://github.com/kohler/gifsicle | https://github.com/kohler/gifsicle/commit/118a46090c50829dc543179019e6140e1235f909 | 118a46090c50829dc543179019e6140e1235f909 | SINGLE | ['118a46090c50829dc543179019e6140e1235f909'] | {'f1b8e6323a8fdd029847b7efd400d5fc2ac9aecc'} | 118a46090c50829dc543179019e6140e1235f909 | 1 | 12/03/2017, 04:08:51 | gif_read: Set last_name = NULL unconditionally.
With a non-malicious GIF, last_name is set to NULL when a name
extension is followed by an image. Reported in #117, via
Debian, via a KAIST fuzzing program. | Eddie Kohler | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -900,6 +900,7 @@ read_gif(Gif_Reader *grr, int read_flags,\n Gif_DeleteArray(gfc.suffix);\n Gif_DeleteArray(gfc.length);\n gfc.gfi = 0;\n+ last_name = 0;\n \n if (gfs)\n gfs->errors = gfc.errors[1];",
"path": "src/gifread.... | c | CWE-415 | [
"src/gifread.c"
] | src/gifread.c | 1 |
//call the requested function if($INPUT->post->has('call')){ $call = $INPUT->post->str('call'); }else if($INPUT->get->has('call')){ $call = $INPUT->get->str('call'); }else{ exit; } | //call the requested function if($INPUT->post->has('call')){ $call = $INPUT->post->filter('utf8_stripspecials')->str('call'); }else if($INPUT->get->has('call')){ $call = $INPUT->get->filter('utf8_stripspecials')->str('call'); }else{ exit; } | CVE-2017-18123 | {'CWE-20'} | 10 | {'https://github.com/splitbrain/dokuwiki/commit/238b8e878ad48f370903465192b57c2072f65d86'} | nvd | The call parameter of /lib/exe/ajax.php in DokuWiki through 2017-02-19e does not properly encode user input, which leads to a reflected file download vulnerability, and allows remote attackers to run arbitrary programs. | 2018-02-03 | 1 | https://github.com/splitbrain/dokuwiki | https://github.com/splitbrain/dokuwiki/commit/238b8e878ad48f370903465192b57c2072f65d86 | 238b8e878ad48f370903465192b57c2072f65d86 | SINGLE | ['238b8e878ad48f370903465192b57c2072f65d86'] | {'e301b164d5c2d215762f2902ca20da12a9db95c0'} | 238b8e878ad48f370903465192b57c2072f65d86 | 1 | 06/27/2017, 13:04:23 | filter special chars from ajax call parameter. fixes #2019 | Andreas Gohr | {'com_1': {'author': 'splitbrain', 'datetime': '06/27/2017, 13:09:40', 'body': 'This fixes #2029!'}} | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -15,9 +15,9 @@\n \n //call the requested function\n if($INPUT->post->has('call')){\n- $call = $INPUT->post->str('call');\n+ $call = $INPUT->post->filter('utf8_stripspecials')->str('call');\n }else if($INPUT->get->has('call')){\n- ... | php | CWE-20 | [
"lib/exe/ajax.php"
] | lib/exe/ajax.php | 1 |
compute_O_value(std::string const& user_password, char upass[key_bytes]; pad_or_truncate_password_V4(user_password, upass); iterate_rc4(QUtil::unsigned_char_pointer(upass), key_bytes, O_key, data.getLengthBytes(), (data.getR() >= 3) ? 20 : 1, false); compute_U_value_R2(std::string const&... | compute_O_value(std::string const& user_password, char upass[key_bytes]; pad_or_truncate_password_V4(user_password, upass); std::string k1(reinterpret_cast<char*>(O_key), OU_key_bytes_V4); pad_short_parameter(k1, data.getLengthBytes()); iterate_rc4(QUtil::unsigned_char_pointer(upass), key_bytes, ... | CVE-2017-18184 | {'CWE-125'} | 2.9 | {'https://github.com/qpdf/qpdf/commit/dea704f0ab7f625e1e7b3f9a1110b45b63157317'} | nvd | An issue was discovered in QPDF before 7.0.0. There is a stack-based out-of-bounds read in the function iterate_rc4 in QPDF_encryption.cc. | 2018-02-13 | 1 | https://github.com/qpdf/qpdf | https://github.com/qpdf/qpdf/commit/dea704f0ab7f625e1e7b3f9a1110b45b63157317 | dea704f0ab7f625e1e7b3f9a1110b45b63157317 | SINGLE | ['dea704f0ab7f625e1e7b3f9a1110b45b63157317'] | {'021c229331444aae507186c7b4a54bb1692b5846'} | dea704f0ab7f625e1e7b3f9a1110b45b63157317 | 1 | 08/27/2017, 01:10:07 | Pad keys to avoid memory errors (fixes #147) | Jay Berkenbilt | null | {'additions': 10, 'deletions': 14, 'total': 24} | [
{
"additions": 10,
"changes": 24,
"deletions": 14,
"patch": "@@ -479,6 +479,8 @@ compute_O_value(std::string const& user_password,\n \n char upass[key_bytes];\n pad_or_truncate_password_V4(user_password, upass);\n+ std::string k1(reinterpret_cast<char*>(O_key), OU_key_bytes_V4);\n+ pad... | cc | CWE-125 | [
"libqpdf/QPDF_encryption.cc"
] | libqpdf/QPDF_encryption.cc | 1 |
static int ssl_parse_client_psk_identity( mbedtls_ssl_context *ssl, unsigned cha /* * Receive client pre-shared key identity name */ if( *p + 2 > end ) { MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) ); return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE ); static... | static int ssl_parse_client_psk_identity( mbedtls_ssl_context *ssl, unsigned cha /* * Receive client pre-shared key identity name */ if( end - *p < 2 ) { MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) ); return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE ); static... | CVE-2017-18187 | {'CWE-190'} | 6.4 | {'https://github.com/ARMmbed/mbedtls/commit/83c9f495ffe70c7dd280b41fdfd4881485a3bc28'} | nvd | In ARM mbed TLS before 2.7.0, there is a bounds-check bypass through an integer overflow in PSK identity parsing in the ssl_parse_client_psk_identity() function in library/ssl_srv.c. | 2018-02-14 | 1 | https://github.com/ARMmbed/mbedtls | https://github.com/ARMmbed/mbedtls/commit/83c9f495ffe70c7dd280b41fdfd4881485a3bc28 | 83c9f495ffe70c7dd280b41fdfd4881485a3bc28 | SINGLE | ['83c9f495ffe70c7dd280b41fdfd4881485a3bc28'] | {'5a1c0e716242acfc7027c78e36487f8df1786c83'} | 83c9f495ffe70c7dd280b41fdfd4881485a3bc28 | 1 | 06/26/2017, 12:52:14 | Prevent bounds check bypass through overflow in PSK identity parsing
The check `if( *p + n > end )` in `ssl_parse_client_psk_identity` is
unsafe because `*p + n` might overflow, thus bypassing the check. As
`n` is a user-specified value up to 65K, this is relevant if the
library happens to be located in the last 65K o... | Hanno Becker | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -3436,7 +3436,7 @@ static int ssl_parse_client_psk_identity( mbedtls_ssl_context *ssl, unsigned cha\n /*\n * Receive client pre-shared key identity name\n */\n- if( *p + 2 > end )\n+ if( end - *p < 2 )\n {\n ... | c | CWE-190 | [
"library/ssl_srv.c"
] | library/ssl_srv.c | 1 |
static void __drop_largest_extent(struct inode *inode, } /* return true, if inode page is changed */ bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext) { struct f2fs_sb_info *sbi = F2FS_I_SB(inode); struct extent_tree *et; bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i... | static void __drop_largest_extent(struct inode *inode, } /* return true, if inode page is changed */ static bool __f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext) { struct f2fs_sb_info *sbi = F2FS_I_SB(inode); struct extent_tree *et; bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_... | CVE-2017-18193 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/dad48e73127ba10279ea33e6dbc8d3905c4d31c0'} | nvd | fs/f2fs/extent_cache.c in the Linux kernel before 4.13 mishandles extent trees, which allows local users to cause a denial of service (BUG) via an application with multiple threads. | 2018-02-22 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/dad48e73127ba10279ea33e6dbc8d3905c4d31c0 | dad48e73127ba10279ea33e6dbc8d3905c4d31c0 | SINGLE | ['dad48e73127ba10279ea33e6dbc8d3905c4d31c0'] | {'1d7be2708277edfef95171d52fb65ee26eaa076b'} | dad48e73127ba10279ea33e6dbc8d3905c4d31c0 | 1 | 05/19/2017, 07:06:12 | f2fs: fix a bug caused by NULL extent tree
Thread A: Thread B:
-f2fs_remount
-sbi->mount_opt.opt = 0;
<--- -f2fs_iget
-do_read_inode
-f2fs_init_extent_tree
-F2FS_I(inode)->extent_tree is NULL
-default_options && parse_options
-remount return
... | Yunlei He | null | {'additions': 11, 'deletions': 1, 'total': 12} | [
{
"additions": 11,
"changes": 12,
"deletions": 1,
"patch": "@@ -320,7 +320,7 @@ static void __drop_largest_extent(struct inode *inode,\n }\n \n /* return true, if inode page is changed */\n-bool f2fs_init_extent_tree(struct inode *inode, struct f2fs_extent *i_ext)\n+static bool __f2fs_init_extent_tr... | c | CWE-119 | [
"fs/f2fs/extent_cache.c"
] | fs/f2fs/extent_cache.c | 1 |
static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) */ set_bit(MMF_UNSTABLE, &mm->flags); tlb_gather_mmu(&tlb, mm, 0, -1); for (vma = mm->mmap ; vma; vma = vma->vm_next) { if (!can_madv_dontneed_vma(vma)) continue; static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_s... | static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) */ set_bit(MMF_UNSTABLE, &mm->flags); for (vma = mm->mmap ; vma; vma = vma->vm_next) { if (!can_madv_dontneed_vma(vma)) continue; static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm) * we do not want to ... | CVE-2017-18202 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/687cb0884a714ff484d038e9190edc874edcf146'} | nvd | The __oom_reap_task_mm function in mm/oom_kill.c in the Linux kernel before 4.14.4 mishandles gather operations, which allows attackers to cause a denial of service (TLB entry leak or use-after-free) or possibly have unspecified other impact by triggering a copy_to_user call within a certain time window. | 2018-02-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/687cb0884a714ff484d038e9190edc874edcf146 | 687cb0884a714ff484d038e9190edc874edcf146 | SINGLE | ['687cb0884a714ff484d038e9190edc874edcf146'] | {'4b81cb2ff69c8a8e297a147d2eb4d9b5e8d7c435'} | 687cb0884a714ff484d038e9190edc874edcf146 | 1 | 11/30/2017, 00:09:58 | mm, oom_reaper: gather each vma to prevent leaking TLB entry
tlb_gather_mmu(&tlb, mm, 0, -1) means gathering the whole virtual memory
space. In this case, tlb->fullmm is true. Some archs like arm64
doesn't flush TLB when tlb->fullmm is true:
commit 5a7862e83000 ("arm64: tlbflush: avoid flushing when fullmm == 1")... | Wang Nan | null | {'additions': 4, 'deletions': 3, 'total': 7} | [
{
"additions": 4,
"changes": 7,
"deletions": 3,
"patch": "@@ -550,7 +550,6 @@ static bool __oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm)\n \t */\n \tset_bit(MMF_UNSTABLE, &mm->flags);\n \n-\ttlb_gather_mmu(&tlb, mm, 0, -1);\n \tfor (vma = mm->mmap ; vma; vma = vma->vm_next) {\n \t... | c | CWE-416 | [
"mm/oom_kill.c"
] | mm/oom_kill.c | 1 |
struct mapped_device *dm_get_from_kobject(struct kobject *kobj) md = container_of(kobj, struct mapped_device, kobj_holder.kobj); if (test_bit(DMF_FREEING, &md->flags) || dm_deleting_md(md)) return NULL; dm_get(md); return md; } | struct mapped_device *dm_get_from_kobject(struct kobject *kobj) md = container_of(kobj, struct mapped_device, kobj_holder.kobj); spin_lock(&_minor_lock); if (test_bit(DMF_FREEING, &md->flags) || dm_deleting_md(md)) { md = NULL; goto out; } dm_get(md); out: spin_unlock(&_minor_lock); return md; } | CVE-2017-18203 | {'CWE-362'} | 2.9 | {'https://github.com/torvalds/linux/commit/b9a41d21dceadf8104812626ef85dc56ee8a60ed'} | nvd | The dm_get_from_kobject function in drivers/md/dm.c in the Linux kernel before 4.14.3 allow local users to cause a denial of service (BUG) by leveraging a race condition with __dm_destroy during creation and removal of DM devices. | 2018-02-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b9a41d21dceadf8104812626ef85dc56ee8a60ed | b9a41d21dceadf8104812626ef85dc56ee8a60ed | SINGLE | ['b9a41d21dceadf8104812626ef85dc56ee8a60ed'] | {'856eb0916d181da6d043cc33e03f54d5c5bbe54a'} | b9a41d21dceadf8104812626ef85dc56ee8a60ed | 1 | 11/01/2017, 07:42:36 | dm: fix race between dm_get_from_kobject() and __dm_destroy()
The following BUG_ON was hit when testing repeat creation and removal of
DM devices:
kernel BUG at drivers/md/dm.c:2919!
CPU: 7 PID: 750 Comm: systemd-udevd Not tainted 4.1.44
Call Trace:
[<ffffffff81649e8b>] dm_get_from_kobject+0x34/0x3a
... | Hou Tao | null | {'additions': 8, 'deletions': 4, 'total': 12} | [
{
"additions": 8,
"changes": 12,
"deletions": 4,
"patch": "@@ -2711,11 +2711,15 @@ struct mapped_device *dm_get_from_kobject(struct kobject *kobj)\n \n \tmd = container_of(kobj, struct mapped_device, kobj_holder.kobj);\n \n-\tif (test_bit(DMF_FREEING, &md->flags) ||\n-\t dm_deleting_md(md))\n-\t\... | c | CWE-362 | [
"drivers/md/dm.c"
] | drivers/md/dm.c | 1 |
char *o2nm_fence_method_desc[O2NM_FENCE_METHODS] = { "panic", /* O2NM_FENCE_PANIC */ }; struct o2nm_node *o2nm_get_node_by_num(u8 node_num) { struct o2nm_node *node = NULL; static struct o2nm_cluster *to_o2nm_cluster_from_node(struct o2nm_node *node) { /* through the first node_set .parent * mycluster/nodes/myn... | char *o2nm_fence_method_desc[O2NM_FENCE_METHODS] = { "panic", /* O2NM_FENCE_PANIC */ }; static inline void o2nm_lock_subsystem(void); static inline void o2nm_unlock_subsystem(void); struct o2nm_node *o2nm_get_node_by_num(u8 node_num) { struct o2nm_node *node = NULL; static struct o2nm_cluster *to_o2nm_cluster_fro... | CVE-2017-18216 | {'CWE-476'} | 2.9 | {'https://github.com/torvalds/linux/commit/853bc26a7ea39e354b9f8889ae7ad1492ffa28d2'} | nvd | In fs/ocfs2/cluster/nodemanager.c in the Linux kernel before 4.15, local users can cause a denial of service (NULL pointer dereference and BUG) because a required mutex is not used. | 2018-03-05 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/853bc26a7ea39e354b9f8889ae7ad1492ffa28d2 | 853bc26a7ea39e354b9f8889ae7ad1492ffa28d2 | SINGLE | ['853bc26a7ea39e354b9f8889ae7ad1492ffa28d2'] | {'3e4c56d41eef5595035872a2ec5a483f42e8917f'} | 853bc26a7ea39e354b9f8889ae7ad1492ffa28d2 | 1 | 11/16/2017, 01:31:48 | ocfs2: subsystem.su_mutex is required while accessing the item->ci_parent
The subsystem.su_mutex is required while accessing the item->ci_parent,
otherwise, NULL pointer dereference to the item->ci_parent will be
triggered in the following situation:
add node delete node
sys_write
vfs_write
con... | alex chen | null | {'additions': 55, 'deletions': 8, 'total': 63} | [
{
"additions": 55,
"changes": 63,
"deletions": 8,
"patch": "@@ -40,6 +40,9 @@ char *o2nm_fence_method_desc[O2NM_FENCE_METHODS] = {\n \t\t\"panic\",\t/* O2NM_FENCE_PANIC */\n };\n \n+static inline void o2nm_lock_subsystem(void);\n+static inline void o2nm_unlock_subsystem(void);\n+\n struct o2nm_node ... | c | CWE-476 | [
"fs/ocfs2/cluster/nodemanager.c"
] | fs/ocfs2/cluster/nodemanager.c | 1 |
static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked; struct pagevec pvec_putback; int pgrescued = 0; static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) continue; else __munlock_isolation_failed(page); }... | static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) { int i; int nr = pagevec_count(pvec); int delta_munlocked = -nr; struct pagevec pvec_putback; int pgrescued = 0; static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone) continue; else __munlock_isolation_failed(page... | CVE-2017-18221 | {'CWE-20'} | 6.9 | {'https://github.com/torvalds/linux/commit/70feee0e1ef331b22cc51f383d532a0d043fbdcc'} | nvd | The __munlock_pagevec function in mm/mlock.c in the Linux kernel before 4.11.4 allows local users to cause a denial of service (NR_MLOCK accounting corruption) via crafted use of mlockall and munlockall system calls. | 2018-03-07 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/70feee0e1ef331b22cc51f383d532a0d043fbdcc | 70feee0e1ef331b22cc51f383d532a0d043fbdcc | SINGLE | ['70feee0e1ef331b22cc51f383d532a0d043fbdcc'] | {'30809f559a0d348c2dfd7ab05e9a451e2384962e'} | 70feee0e1ef331b22cc51f383d532a0d043fbdcc | 1 | 06/02/2017, 21:46:43 | mlock: fix mlock count can not decrease in race condition
Kefeng reported that when running the follow test, the mlock count in
meminfo will increase permanently:
[1] testcase
linux:~ # cat test_mlockal
grep Mlocked /proc/meminfo
for j in `seq 0 10`
do
for i in `seq 4 15`
do
./p_mlockall >> log &
done... | Yisheng Xie | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -284,7 +284,7 @@ static void __munlock_pagevec(struct pagevec *pvec, struct zone *zone)\n {\n \tint i;\n \tint nr = pagevec_count(pvec);\n-\tint delta_munlocked;\n+\tint delta_munlocked = -nr;\n \tstruct pagevec pvec_putback;\n \tint pgres... | c | CWE-20 | [
"mm/mlock.c"
] | mm/mlock.c | 1 |
static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, return err; } int ocfs2_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) { static void ocfs2_dio_free_write_ctx(struct inode *inode, * called like this: dio->get_blocks(dio->inode, fs_startblk, ... | static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock, return err; } static int ocfs2_lock_get_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create) { int ret = 0; struct ocfs2_inode_info *oi = OCFS2_I(inode); down_read(&oi->ip_alloc_sem); ret = ocfs2_get... | CVE-2017-18224 | {'CWE-362'} | 2.9 | {'https://github.com/torvalds/linux/commit/3e4c56d41eef5595035872a2ec5a483f42e8917f'} | nvd | In the Linux kernel before 4.15, fs/ocfs2/aops.c omits use of a semaphore and consequently has a race condition for access to the extent tree during read operations in DIRECT mode, which allows local users to cause a denial of service (BUG) by modifying a certain e_cpos field. | 2018-03-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3e4c56d41eef5595035872a2ec5a483f42e8917f | 3e4c56d41eef5595035872a2ec5a483f42e8917f | SINGLE | ['3e4c56d41eef5595035872a2ec5a483f42e8917f'] | {'28f5a8a7c033cbf3e32277f4cc9c6afd74f05300'} | 3e4c56d41eef5595035872a2ec5a483f42e8917f | 1 | 11/16/2017, 01:31:44 | ocfs2: ip_alloc_sem should be taken in ocfs2_get_block()
ip_alloc_sem should be taken in ocfs2_get_block() when reading file in
DIRECT mode to prevent concurrent access to extent tree with
ocfs2_dio_end_io_write(), which may cause BUGON in the following
situation:
read file 'A' end_io... | alex chen | null | {'additions': 18, 'deletions': 8, 'total': 26} | [
{
"additions": 18,
"changes": 26,
"deletions": 8,
"patch": "@@ -134,6 +134,19 @@ static int ocfs2_symlink_get_block(struct inode *inode, sector_t iblock,\n \treturn err;\n }\n \n+static int ocfs2_lock_get_block(struct inode *inode, sector_t iblock,\n+\t\t struct buffer_head *bh_result, int create... | c | CWE-362 | [
"fs/ocfs2/aops.c"
] | fs/ocfs2/aops.c | 1 |
int create_flush_cmd_control(struct f2fs_sb_info *sbi) init_waitqueue_head(&fcc->flush_wait_queue); init_llist_head(&fcc->issue_list); SM_I(sbi)->fcc_info = fcc; init_thread: fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2fs_flush-%u:%u", MAJOR(dev), MINOR(dev)); int build_segment_manager(stru... | int create_flush_cmd_control(struct f2fs_sb_info *sbi) init_waitqueue_head(&fcc->flush_wait_queue); init_llist_head(&fcc->issue_list); SM_I(sbi)->fcc_info = fcc; if (!test_opt(sbi, FLUSH_MERGE)) return err; init_thread: fcc->f2fs_issue_flush = kthread_run(issue_flush_thread, sbi, "f2fs_flush-%u:%u", MAJOR(... | CVE-2017-18241 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/d4fdf8ba0e5808ba9ad6b44337783bd9935e0982'} | nvd | fs/f2fs/segment.c in the Linux kernel before 4.13 allows local users to cause a denial of service (NULL pointer dereference and panic) by using a noflush_merge option that triggers a NULL value for a flush_cmd_control data structure. | 2018-03-21 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/d4fdf8ba0e5808ba9ad6b44337783bd9935e0982 | d4fdf8ba0e5808ba9ad6b44337783bd9935e0982 | SINGLE | ['d4fdf8ba0e5808ba9ad6b44337783bd9935e0982'] | {'68390dd9bd5b2ef7c3ec69c23010b39981e264a4'} | d4fdf8ba0e5808ba9ad6b44337783bd9935e0982 | 1 | 06/01/2017, 08:43:51 | f2fs: fix a panic caused by NULL flush_cmd_control
Mount fs with option noflush_merge, boot failed for illegal address
fcc in function f2fs_issue_flush:
if (!test_opt(sbi, FLUSH_MERGE)) {
ret = submit_flush_wait(sbi);
atomic_inc(&fcc->issued_flush); -> Here, fcc illegal
... | Yunlei He | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -566,6 +566,9 @@ int create_flush_cmd_control(struct f2fs_sb_info *sbi)\n \tinit_waitqueue_head(&fcc->flush_wait_queue);\n \tinit_llist_head(&fcc->issue_list);\n \tSM_I(sbi)->fcc_info = fcc;\n+\tif (!test_opt(sbi, FLUSH_MERGE))\n+\t\tretur... | c | CWE-476 | [
"fs/f2fs/segment.c"
] | fs/f2fs/segment.c | 1 |
static void __remove_nid_from_list(struct f2fs_sb_info *sbi, static bool add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i; struct nat_entry *ne; int err; /* 0 nid should not be used */ if (unlikely(nid == 0)) return false; if (build) {... | static void __remove_nid_from_list(struct f2fs_sb_info *sbi, static bool add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build) { struct f2fs_nm_info *nm_i = NM_I(sbi); struct free_nid *i, *e; struct nat_entry *ne; int err = -EINVAL; bool ret = false; /* 0 nid should not be used */ if (unlikely(nid == 0... | CVE-2017-18249 | {'CWE-362'} | 6.4 | {'https://github.com/torvalds/linux/commit/30a61ddf8117c26ac5b295e1233eaa9629a94ca3'} | nvd | The add_free_nid function in fs/f2fs/node.c in the Linux kernel before 4.12 does not properly track an allocated nid, which allows local users to cause a denial of service (race condition) or possibly have unspecified other impact via concurrent threads. | 2018-03-26 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/30a61ddf8117c26ac5b295e1233eaa9629a94ca3 | 30a61ddf8117c26ac5b295e1233eaa9629a94ca3 | SINGLE | ['30a61ddf8117c26ac5b295e1233eaa9629a94ca3'] | {'5f4c3dec225e03273e1f74816e676cccc1a54329'} | 30a61ddf8117c26ac5b295e1233eaa9629a94ca3 | 1 | 03/22/2017, 06:45:05 | f2fs: fix race condition in between free nid allocator/initializer
In below concurrent case, allocated nid can be loaded into free nid cache
and be allocated again.
Thread A Thread B
- f2fs_create
- f2fs_new_inode
- alloc_nid
- __insert_nid_to_list(ALLOC_NID_LIST)
- f2fs_balance_fs_bg
- build_free... | Chao Yu | null | {'additions': 45, 'deletions': 18, 'total': 63} | [
{
"additions": 45,
"changes": 63,
"deletions": 18,
"patch": "@@ -1761,40 +1761,67 @@ static void __remove_nid_from_list(struct f2fs_sb_info *sbi,\n static bool add_free_nid(struct f2fs_sb_info *sbi, nid_t nid, bool build)\n {\n \tstruct f2fs_nm_info *nm_i = NM_I(sbi);\n-\tstruct free_nid *i;\n+\tstr... | c | CWE-362 | [
"fs/f2fs/node.c"
] | fs/f2fs/node.c | 1 |
int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec(table, write, buffer, lenp, ppos); if (ret || !write) return ret; | int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { int ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); if (ret || !write) return ret; | CVE-2017-18255 | {'CWE-190'} | 6.4 | {'https://github.com/torvalds/linux/commit/1572e45a924f254d9570093abde46430c3172e3d'} | nvd | The perf_cpu_time_max_percent_handler function in kernel/events/core.c in the Linux kernel before 4.11 allows local users to cause a denial of service (integer overflow) or possibly have unspecified other impact via a large value, as demonstrated by an incorrect sample-rate calculation. | 2018-03-31 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1572e45a924f254d9570093abde46430c3172e3d | 1572e45a924f254d9570093abde46430c3172e3d | SINGLE | ['1572e45a924f254d9570093abde46430c3172e3d'] | {'7bbba0eb1af34694868d028b80475981f90e6bee'} | 1572e45a924f254d9570093abde46430c3172e3d | 1 | 02/23/2017, 06:04:39 | perf/core: Fix the perf_cpu_time_max_percent check
Use "proc_dointvec_minmax" instead of "proc_dointvec" to check the input
value from user-space.
If not, we can set a big value and some vars will overflow like
"sysctl_perf_event_sample_rate" which will cause a lot of unexpected
problems.
Signed-off-by: Tan Xiaojun ... | Tan Xiaojun | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -455,7 +455,7 @@ int perf_cpu_time_max_percent_handler(struct ctl_table *table, int write,\n \t\t\t\tvoid __user *buffer, size_t *lenp,\n \t\t\t\tloff_t *ppos)\n {\n-\tint ret = proc_dointvec(table, write, buffer, lenp, ppos);\n+\tint ret ... | c | CWE-190 | [
"kernel/events/core.c"
] | kernel/events/core.c | 1 |
static int __get_data_block(struct inode *inode, sector_t iblock, if (!err) { map_bh(bh, inode->i_sb, map.m_pblk); bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; bh->b_size = map.m_len << inode->i_blkbits; } return err; } | static int __get_data_block(struct inode *inode, sector_t iblock, if (!err) { map_bh(bh, inode->i_sb, map.m_pblk); bh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags; bh->b_size = (u64)map.m_len << inode->i_blkbits; } return err; } | CVE-2017-18257 | {'CWE-190'} | 6.9 | {'https://github.com/torvalds/linux/commit/b86e33075ed1909d8002745b56ecf73b833db143'} | nvd | The __get_data_block function in fs/f2fs/data.c in the Linux kernel before 4.11 allows local users to cause a denial of service (integer overflow and loop) via crafted use of the open and fallocate system calls with an FS_IOC_FIEMAP ioctl. | 2018-04-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b86e33075ed1909d8002745b56ecf73b833db143 | b86e33075ed1909d8002745b56ecf73b833db143 | SINGLE | ['b86e33075ed1909d8002745b56ecf73b833db143'] | {'dc91de78e5e1d44238b5dd2b57d2e8e67cbc00a1'} | b86e33075ed1909d8002745b56ecf73b833db143 | 1 | 01/22/2017, 04:21:02 | f2fs: fix a dead loop in f2fs_fiemap()
A dead loop can be triggered in f2fs_fiemap() using the test case
as below:
...
fd = open();
fallocate(fd, 0, 0, 4294967296);
ioctl(fd, FS_IOC_FIEMAP, fiemap_buf);
...
It's caused by an overflow in __get_data_block():
...
bh->b_size = map.m_len << inode->i_blkbits;
...
... | Wei Fang | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -964,7 +964,7 @@ static int __get_data_block(struct inode *inode, sector_t iblock,\n \tif (!err) {\n \t\tmap_bh(bh, inode->i_sb, map.m_pblk);\n \t\tbh->b_state = (bh->b_state & ~F2FS_MAP_FLAGS) | map.m_flags;\n-\t\tbh->b_size = map.m_len <... | c | CWE-190 | [
"fs/f2fs/data.c"
] | fs/f2fs/data.c | 1 |
private function formatArgs(array $args) $formattedValue = str_replace("\n", '', var_export($this->escapeHtml((string) $item[1]), true)); } $result[] = is_int($key) ? $formattedValue : sprintf("'%s' => %s", $key, $formattedValue); } return implode(', ', $result... | private function formatArgs(array $args) $formattedValue = str_replace("\n", '', var_export($this->escapeHtml((string) $item[1]), true)); } $result[] = is_int($key) ? $formattedValue : sprintf("'%s' => %s", $this->escapeHtml($key), $formattedValue); } return im... | CVE-2017-18343 | {'CWE-79'} | 2.9 | {'https://github.com/symfony/debug/pull/7/commits/e48bda29143bd1a83001780b4a78e483822d985c'} | nvd | ** DISPUTED ** The debug handler in Symfony before v2.7.33, 2.8.x before v2.8.26, 3.x before v3.2.13, and 3.3.x before v3.3.6 has XSS via an array key during exception pretty printing in ExceptionHandler.php, as demonstrated by a /_debugbar/open?op=get URI. NOTE: the vendor's position is that this is not a vulnerabilit... | 2018-07-20 | 1 | https://github.com/symfony/debug | https://github.com/symfony/debug/pull/7/commits/e48bda29143bd1a83001780b4a78e483822d985c | e48bda29143bd1a83001780b4a78e483822d985c | SINGLE | ['e48bda29143bd1a83001780b4a78e483822d985c'] | {'697c527acd9ea1b2d3efac34d9806bf255278b0a'} | e48bda29143bd1a83001780b4a78e483822d985c | 1 | 07/18/2018, 22:20:51 | fix XSS vulnerability
details: https://github.com/symfony/symfony/issues/27987 | omer citak | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -398,7 +398,7 @@ private function formatArgs(array $args)\n $formattedValue = str_replace(\"\\n\", '', var_export($this->escapeHtml((string) $item[1]), true));\n }\n \n- $result[] = is_int($key) ? $fo... | php | CWE-79 | [
"ExceptionHandler.php"
] | ExceptionHandler.php | 1 |
static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; if ((event->sigev_notify & SIGEV_THREAD_ID ) && (!(rtn = find_task_by_vpid(event->sigev_notify_thread_id)) || !same_thread_group(rtn, current) || (event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_SIGNAL))... | static struct pid *good_sigevent(sigevent_t * event) { struct task_struct *rtn = current->group_leader; switch (event->sigev_notify) { case SIGEV_SIGNAL | SIGEV_THREAD_ID: rtn = find_task_by_vpid(event->sigev_notify_thread_id); if (!rtn || !same_thread_group(rtn, current)) return NULL; /* FALLTHRU */ cas... | CVE-2017-18344 | {'CWE-125'} | 2.9 | {'https://github.com/torvalds/linux/commit/cef31d9af908243421258f1df35a4a644604efbe'} | nvd | The timer_create syscall implementation in kernel/time/posix-timers.c in the Linux kernel before 4.14.8 doesn't properly validate the sigevent->sigev_notify field, which leads to out-of-bounds access in the show_timer function (called when /proc/$PID/timers is read). This allows userspace applications to read arbitrary... | 2018-07-26 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cef31d9af908243421258f1df35a4a644604efbe | cef31d9af908243421258f1df35a4a644604efbe | SINGLE | ['cef31d9af908243421258f1df35a4a644604efbe'] | {'50c4c4e268a2d7a3e58ebb698ac74da0de40ae36'} | cef31d9af908243421258f1df35a4a644604efbe | 1 | 12/15/2017, 09:32:03 | posix-timer: Properly check sigevent->sigev_notify
timer_create() specifies via sigevent->sigev_notify the signal delivery for
the new timer. The valid modes are SIGEV_NONE, SIGEV_SIGNAL, SIGEV_THREAD
and (SIGEV_SIGNAL | SIGEV_THREAD_ID).
The sanity check in good_sigevent() is only checking the valid combination
for ... | Thomas Gleixner | null | {'additions': 17, 'deletions': 12, 'total': 29} | [
{
"additions": 17,
"changes": 29,
"deletions": 12,
"patch": "@@ -434,17 +434,22 @@ static struct pid *good_sigevent(sigevent_t * event)\n {\n \tstruct task_struct *rtn = current->group_leader;\n \n-\tif ((event->sigev_notify & SIGEV_THREAD_ID ) &&\n-\t\t(!(rtn = find_task_by_vpid(event->sigev_notify... | c | CWE-125 | [
"kernel/time/posix-timers.c"
] | kernel/time/posix-timers.c | 1 |
static void change_port_settings(struct tty_struct *tty, if (!baud) { /* pick a default, any default... */ baud = 9600; } else tty_encode_baud_rate(tty, baud, baud); edge_port->baud_rate = baud; config->wBaudRate = (__u16)((461550L + baud/2) / baud); | static void change_port_settings(struct tty_struct *tty, if (!baud) { /* pick a default, any default... */ baud = 9600; } else { /* Avoid a zero divisor. */ baud = min(baud, 461550); tty_encode_baud_rate(tty, baud, baud); } edge_port->baud_rate = baud; config->wBaudRate = (__u16)((461550L + baud/2) / b... | CVE-2017-18360 | {'CWE-369'} | 6.9 | {'https://github.com/torvalds/linux/commit/6aeb75e6adfaed16e58780309613a578fe1ee90b'} | nvd | In change_port_settings in drivers/usb/serial/io_ti.c in the Linux kernel before 4.11.3, local users could cause a denial of service by division-by-zero in the serial device layer by trying to set very high baud rates. | 2019-01-31 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6aeb75e6adfaed16e58780309613a578fe1ee90b | 6aeb75e6adfaed16e58780309613a578fe1ee90b | SINGLE | ['6aeb75e6adfaed16e58780309613a578fe1ee90b'] | {'26cede343656c0bc2c33cdc783771282405c7fb2'} | 6aeb75e6adfaed16e58780309613a578fe1ee90b | 1 | 05/11/2017, 09:41:21 | USB: serial: io_ti: fix div-by-zero in set_termios
Fix a division-by-zero in set_termios when debugging is enabled and a
high-enough speed has been requested so that the divisor value becomes
zero.
Instead of just fixing the offending debug statement, cap the baud rate
at the base as a zero divisor value also appears... | Johan Hovold | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -2336,8 +2336,11 @@ static void change_port_settings(struct tty_struct *tty,\n \tif (!baud) {\n \t\t/* pick a default, any default... */\n \t\tbaud = 9600;\n-\t} else\n+\t} else {\n+\t\t/* Avoid a zero divisor. */\n+\t\tbaud = min(baud, 46... | c | CWE-369 | [
"drivers/usb/serial/io_ti.c"
] | drivers/usb/serial/io_ti.c | 1 |
nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport, u16 qid = nvmet_fc_getqueueid(connection_id); unsigned long flags; spin_lock_irqsave(&tgtport->lock, flags); list_for_each_entry(assoc, &tgtport->assoc_list, a_list) { if (association_id == assoc->association_id) { | nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport, u16 qid = nvmet_fc_getqueueid(connection_id); unsigned long flags; if (qid > NVMET_NR_QUEUES) return NULL; spin_lock_irqsave(&tgtport->lock, flags); list_for_each_entry(assoc, &tgtport->assoc_list, a_list) { if (association_id == assoc->associatio... | CVE-2017-18379 | {'CWE-119'} | 6.4 | {'https://github.com/torvalds/linux/commit/0c319d3a144d4b8f1ea2047fd614d2149b68f889'} | nvd | In the Linux kernel before 4.14, an out of boundary access happened in drivers/nvme/target/fc.c. | 2019-07-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/0c319d3a144d4b8f1ea2047fd614d2149b68f889 | 0c319d3a144d4b8f1ea2047fd614d2149b68f889 | SINGLE | ['0c319d3a144d4b8f1ea2047fd614d2149b68f889'] | {'3688feb582a1bc4e58ad50f5eccfdb90615de27b'} | 0c319d3a144d4b8f1ea2047fd614d2149b68f889 | 1 | 09/19/2017, 23:33:56 | nvmet-fc: ensure target queue id within range.
When searching for queue id's ensure they are within the expected range.
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk> | James Smart | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -783,6 +783,9 @@ nvmet_fc_find_target_queue(struct nvmet_fc_tgtport *tgtport,\n \tu16 qid = nvmet_fc_getqueueid(connection_id);\n \tunsigned long flags;\n \n+\tif (qid > NVMET_NR_QUEUES)\n+\t\treturn NULL;\n+\n \tspin_lock_irqsave(&tgtport... | c | CWE-119 | [
"drivers/nvme/target/fc.c"
] | drivers/nvme/target/fc.c | 1 |
int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns struct net *net = sock_net(sk); struct mr6_table *mrt; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (!mrt) return -ENOENT; int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, ... | int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns struct net *net = sock_net(sk); struct mr6_table *mrt; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) return -EOPNOTSUPP; mrt = ip6mr_get_table(net, raw6_sk(sk)->ip6mr_table ? : RT6_TABLE_DFLT); if (... | CVE-2017-18509 | {'CWE-20'} | 10 | {'https://github.com/torvalds/linux/commit/99253eb750fda6a644d5188fb26c43bad8d5a745'} | nvd | An issue was discovered in net/ipv6/ip6mr.c in the Linux kernel before 4.11. By setting a specific socket option, an attacker can control a pointer in kernel land and cause an inet_csk_listen_stop general protection fault, or potentially execute arbitrary code under certain circumstances. The issue can be triggered as ... | 2019-08-13 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/99253eb750fda6a644d5188fb26c43bad8d5a745 | 99253eb750fda6a644d5188fb26c43bad8d5a745 | SINGLE | ['99253eb750fda6a644d5188fb26c43bad8d5a745'] | {'2e3ce5bc2aa938653c3866aa7f4901a1f199b1c8'} | 99253eb750fda6a644d5188fb26c43bad8d5a745 | 1 | 02/24/2017, 08:29:06 | ipv6: check sk sk_type and protocol early in ip_mroute_set/getsockopt
Commit 5e1859fbcc3c ("ipv4: ipmr: various fixes and cleanups") fixed
the issue for ipv4 ipmr:
ip_mroute_setsockopt() & ip_mroute_getsockopt() should not
access/set raw_sk(sk)->ipmr_table before making sure the socket
is a raw socket, and prot... | Xin Long | null | {'additions': 8, 'deletions': 3, 'total': 11} | [
{
"additions": 8,
"changes": 11,
"deletions": 3,
"patch": "@@ -1666,6 +1666,10 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns\n \tstruct net *net = sock_net(sk);\n \tstruct mr6_table *mrt;\n \n+\tif (sk->sk_type != SOCK_RAW ||\n+\t inet_sk(sk)->inet_num != IPP... | c | CWE-20 | [
"net/ipv6/ip6mr.c"
] | net/ipv6/ip6mr.c | 1 |
extern "C" { } #include "nse_lua.h" #include "nse_debug.h" #include "nse_nsock.h" #include "nse_utility.h" static int do_session_handshake (lua_State *L, int status, lua_KContext ctx) { if (rc) { libssh2_session_free(sshu->session); return luaL_error(L, "Unable to complete libssh2 handshake."); ... | extern "C" { } #include "nse_lua.h" #include "nse_nsock.h" #include "nse_utility.h" static int do_session_handshake (lua_State *L, int status, lua_KContext ctx) { if (rc) { libssh2_session_free(sshu->session); sshu->session = NULL; return luaL_error(L, "Unable to complete libssh2 handsha... | CVE-2017-18594 | {'CWE-415'} | 2.9 | {'https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad'} | nvd | nse_libssh2.cc in Nmap 7.70 is subject to a denial of service condition due to a double free when an SSH connection fails, as demonstrated by a leading \n character to ssh-brute.nse or ssh-auth-methods.nse. | 2019-08-29 | 1 | https://github.com/nmap/nmap | https://github.com/nmap/nmap/commit/350bbe0597d37ad67abe5fef8fba984707b4e9ad | 350bbe0597d37ad67abe5fef8fba984707b4e9ad | SINGLE | ['350bbe0597d37ad67abe5fef8fba984707b4e9ad'] | {'f893372ddd95c1a67e8e7a7cea462809ca638358'} | 350bbe0597d37ad67abe5fef8fba984707b4e9ad | 1 | 11/29/2018, 17:42:09 | Avoid a crash (double-free) when SSH connection fails | dmiller | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -12,7 +12,6 @@ extern \"C\" {\n }\n #include \"nse_lua.h\"\n \n-#include \"nse_debug.h\"\n #include \"nse_nsock.h\"\n #include \"nse_utility.h\"\n \n@@ -295,6 +294,7 @@ static int do_session_handshake (lua_State *L, int status, lua_KContex... | cc | CWE-415 | [
"nse_libssh2.cc"
] | nse_libssh2.cc | 1 |
#define B64LEN(__x) (((__x + 2) / 3) * 12 / 3) #define WSHLENMAX 14 /* 2 + sizeof(uint64_t) + sizeof(uint32_t) */ enum { WEBSOCKETS_VERSION_HIXIE, static int gettid() { typedef int (*wsEncodeFunc)(rfbClientPtr cl, const char *src, int len, char **dst); typedef int (*wsDecodeFunc)(rfbClientPtr cl, char *dst, int l... | #define B64LEN(__x) (((__x + 2) / 3) * 12 / 3) #define WSHLENMAX 14 /* 2 + sizeof(uint64_t) + sizeof(uint32_t) */ #define WS_HYBI_MASK_LEN 4 #define ARRAYSIZE(a) ((sizeof(a) / sizeof((a[0]))) / (size_t)(!(sizeof(a) % sizeof((a[0]))))) enum { WEBSOCKETS_VERSION_HIXIE, static int gettid() { typedef int (*wsEncodeF... | CVE-2017-18922 | {'CWE-787'} | 6.4 | {'https://github.com/LibVNC/libvncserver/commit/aac95a9dcf4bbba87b76c72706c3221a842ca433'} | nvd | It was discovered that websockets.c in LibVNCServer prior to 0.9.12 did not properly decode certain WebSocket frames. A malicious attacker could exploit this by sending specially crafted WebSocket frames to a server, causing a heap-based buffer overflow. | 2020-06-30 | 1 | https://github.com/LibVNC/libvncserver | https://github.com/LibVNC/libvncserver/commit/aac95a9dcf4bbba87b76c72706c3221a842ca433 | aac95a9dcf4bbba87b76c72706c3221a842ca433 | SINGLE | ['aac95a9dcf4bbba87b76c72706c3221a842ca433'] | {'0fcd4a3b5270cfaa36049ba68aa1cae75063e064'} | aac95a9dcf4bbba87b76c72706c3221a842ca433 | 1 | 02/15/2017, 11:31:05 | fix overflow and refactor websockets decode (Hybi)
fix critical heap-based buffer overflow which allowed easy modification
of a return address via an overwritten function pointer
fix bug causing connections to fail due a "one websocket frame = one
ws_read" assumption, which failed with LibVNCServer-0.9.11
refactor w... | Andreas Weigel | null | {'additions': 463, 'deletions': 132, 'total': 595} | [
{
"additions": 463,
"changes": 595,
"deletions": 132,
"patch": "@@ -77,6 +77,9 @@\n \n #define B64LEN(__x) (((__x + 2) / 3) * 12 / 3)\n #define WSHLENMAX 14 /* 2 + sizeof(uint64_t) + sizeof(uint32_t) */\n+#define WS_HYBI_MASK_LEN 4\n+\n+#define ARRAYSIZE(a) ((sizeof(a) / sizeof((a[0]))) / (size_t)(... | c | CWE-787 | [
"libvncserver/websockets.c"
] | libvncserver/websockets.c | 1 |
public static boolean wasWhitespacePeeked(XMLEventReader xmlEventReader, XMLEven */ public static String getAttributeValue(Attribute attribute) { String str = trim(attribute.getValue()); str = StringUtil.getSystemPropertyAsString(str); return str; } public static String getElement... | public static boolean wasWhitespacePeeked(XMLEventReader xmlEventReader, XMLEven */ public static String getAttributeValue(Attribute attribute) { String str = trim(attribute.getValue()); return str; } public static String getElementText(XMLEventReader xmlEventReader) throws Parsin ... | CVE-2017-2582 | {'CWE-200'} | 2.9 | {'https://github.com/keycloak/keycloak/pull/3715/commits/0cb5ba0f6e83162d221681f47b470c3042eef237'} | nvd | It was found that while parsing the SAML messages the StaxParserUtil class of keycloak before 2.5.1 replaces special strings for obtaining attribute values with system property. This could allow an attacker to determine values of system properties at the attacked system by formatting the SAML request ID field to be the... | 2018-07-26 | 1 | https://github.com/keycloak/keycloak | https://github.com/keycloak/keycloak/pull/3715/commits/0cb5ba0f6e83162d221681f47b470c3042eef237 | 0cb5ba0f6e83162d221681f47b470c3042eef237 | SINGLE | ['0cb5ba0f6e83162d221681f47b470c3042eef237'] | {'56160ef12b12dd429324b258d2bc1dd8b4e3cbd0'} | 0cb5ba0f6e83162d221681f47b470c3042eef237 | 1 | 01/05/2017, 13:17:03 | KEYCLOAK-4160 | Hynek Mlnarik | null | {'additions': 0, 'deletions': 2, 'total': 2} | [
{
"additions": 0,
"changes": 2,
"deletions": 2,
"patch": "@@ -122,7 +122,6 @@ public static boolean wasWhitespacePeeked(XMLEventReader xmlEventReader, XMLEven\n */\n public static String getAttributeValue(Attribute attribute) {\n String str = trim(attribute.getValue());\n- st... | java | CWE-200 | [
"saml-core/src/main/java/org/keycloak/saml/common/util/StaxParserUtil.java"
] | saml-core/src/main/java/org/keycloak/saml/common/util/StaxParserUtil.java | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.