func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static bool is_valid_passthrough_msr(u32 msr) { bool r; switch (msr) { case 0x800 ... 0x8ff: /* x2APIC MSRs. These are handled in vmx_update_msr_bitmap_x2apic() */ return true; case MSR_IA32_RTIT_STATUS: case MSR_IA32_RTIT_OUTPUT_BASE: case MSR_IA32_RTIT_OUTPUT_MASK: case MSR_IA32_RTIT_CR3_MATCH: case MSR_...
0
[ "CWE-787" ]
linux
04c4f2ee3f68c9a4bf1653d15f1a9a435ae33f7a
290,051,745,689,262,420,000,000,000,000,000,000,000
31
KVM: VMX: Don't use vcpu->run->internal.ndata as an array index __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for an array access. Since vcpu->run is (can be) mapped to a user address space with a writer permission, the 'ndata' could be updated by the user process at anytime (the user process can set...
int URI_FUNC(ParseUri)(URI_TYPE(ParserState) * state, const URI_CHAR * text) { if ((state == NULL) || (text == NULL)) { return URI_ERROR_NULL; } return URI_FUNC(ParseUriEx)(state, text, text + URI_STRLEN(text)); }
0
[ "CWE-125" ]
uriparser
cef25028de5ff872c2e1f0a6c562eb3ea9ecbce4
36,904,088,034,354,675,000,000,000,000,000,000,000
6
Fix uriParse*Ex* out-of-bounds read
compose_group16_nonknockout_nonblend_isolated_nomask_common(uint16_t *tos_ptr, bool tos_isolated, int tos_planestride, int tos_rowstride, uint16_t alpha, uint16_t shape, gs_blend_mode_t blend_mode, bool tos_has_shape, int tos_shape_offset, int tos_alpha_g_offset, int tos_tag_offset, bool tos_has_tag, ...
0
[ "CWE-476" ]
ghostpdl
7870f4951bcc6a153f317e3439e14d0e929fd231
45,921,459,109,552,590,000,000,000,000,000,000,000
15
Bug 701795: Segv due to image mask issue
static int bnx2x_afex_handle_vif_list_cmd(struct bnx2x *bp, u8 cmd_type, u16 vif_index, u8 func_bit_map) { struct bnx2x_func_state_params func_params = {NULL}; struct bnx2x_func_afex_viflists_params *update_params = &func_params.params.afex_viflists; int rc; u32 drv_msg_code; /* validate only LIST_SET an...
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
268,263,554,558,304,420,000,000,000,000,000,000,000
37
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
test_failed_connection (TestConnection *test, gconstpointer data) { GIOStream *connection; GError *error = NULL; GSocketConnectable *bad_addr; connection = start_async_server_and_connect_to_it (test, G_TLS_AUTHENTICATION_NONE); bad_addr = g_network_address_new ("wrong.example.com",...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
302,167,631,106,569,130,000,000,000,000,000,000,000
36
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
void nl80211_send_disassoc(struct cfg80211_registered_device *rdev, struct net_device *netdev, const u8 *buf, size_t len, gfp_t gfp) { nl80211_send_mlme_event(rdev, netdev, buf, len, NL80211_CMD_DISASSOCIATE, gfp);
0
[ "CWE-362", "CWE-119" ]
linux
208c72f4fe44fe09577e7975ba0e7fa0278f3d03
126,622,023,310,737,950,000,000,000,000,000,000,000
7
nl80211: fix check for valid SSID size in scan operations In both trigger_scan and sched_scan operations, we were checking for the SSID length before assigning the value correctly. Since the memory was just kzalloc'ed, the check was always failing and SSID with over 32 characters were allowed to go through. This was...
DocumentSource::GetModPathsReturn GroupFromFirstDocumentTransformation::getModifiedPaths() const { // Replaces the entire root, so all paths are modified. return {DocumentSource::GetModPathsReturn::Type::kAllPaths, std::set<std::string>{}, {}}; }
0
[]
mongo
14784757ff5e983ea40b21c14e661aba81dfc083
269,819,822,625,449,540,000,000,000,000,000,000,000
4
SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
static bool tcp_any_retrans_done(const struct sock *sk) { const struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *skb; if (tp->retrans_out) return true; skb = tcp_rtx_queue_head(sk); if (unlikely(skb && TCP_SKB_CB(skb)->sacked & TCPCB_EVER_RETRANS)) return true; return false; }
0
[ "CWE-190" ]
net
3b4929f65b0d8249f19a50245cd88ed1a2f78cff
176,519,543,442,970,320,000,000,000,000,000,000,000
14
tcp: limit payload size of sacked skbs Jonathan Looney reported that TCP can trigger the following crash in tcp_shifted_skb() : BUG_ON(tcp_skb_pcount(skb) < pcount); This can happen if the remote peer has advertized the smallest MSS that linux TCP accepts : 48 An skb can hold 17 fragments, and each fragment can ho...
void CLASS android_loose_load_raw() { uchar *data, *dp; int bwide, row, col, c; UINT64 bitbuf = 0; bwide = (raw_width + 5) / 6 << 3; data = (uchar *)malloc(bwide); merror(data, "android_loose_load_raw()"); for (row = 0; row < raw_height; row++) { if (fread(data, 1, bwide, ifp) < bwide) derror...
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
200,717,595,318,438,600,000,000,000,000,000,000,000
21
Secunia SA75000 advisory: several buffer overruns
friend BasicWriter<Char> &operator<<( BasicWriter<Char> &w, const ISO8601DateFormatter &d) { return w << pad(d.date_->year(), 4, '0') << '-' << pad(d.date_->month(), 2, '0') << '-' << pad(d.date_->day(), 2, '0'); }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
302,117,641,039,715,040,000,000,000,000,000,000,000
5
Fix segfault on complex pointer formatting (#642)
psutil_proc_oneshot_info(PyObject *self, PyObject *args) { long pid; long rss; long vms; long memtext; long memdata; long memstack; int oncpu; kinfo_proc kp; long pagesize = sysconf(_SC_PAGESIZE); char str[1000]; PyObject *py_name; PyObject *py_retlist; if (! PyArg_P...
0
[ "CWE-415" ]
psutil
7d512c8e4442a896d56505be3e78f1156f443465
15,928,226,035,658,635,000,000,000,000,000,000,000
156
Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616) These files contain loops that convert system data into python objects and during the process they create objects and dereference their refcounts after they have been added to the resulting list. However, in case of errors during the creat...
get_cert_list(const char *id_digest) { cert_list_t *cl; if (!trusted_dir_certs) trusted_dir_certs = digestmap_new(); cl = digestmap_get(trusted_dir_certs, id_digest); if (!cl) { cl = tor_malloc_zero(sizeof(cert_list_t)); cl->dl_status.schedule = DL_SCHED_CONSENSUS; cl->certs = smartlist_create()...
0
[ "CWE-399" ]
tor
308f6dad20675c42b29862f4269ad1fbfb00dc9a
292,051,358,171,482,400,000,000,000,000,000,000,000
14
Mitigate a side-channel leak of which relays Tor chooses for a circuit Tor's and OpenSSL's current design guarantee that there are other leaks, but this one is likely to be more easily exploitable, and is easy to fix.
handle_ns_request(int dns_fd, struct query *q) /* Mostly identical to handle_a_request() below */ { char buf[64*1024]; int len; if (ns_ip != INADDR_ANY) { /* If ns_ip set, overwrite destination addr with it. * Destination addr will be sent as additional record (A, IN) */ memcpy(&q->destination.s_addr, &ns_ip...
0
[]
iodine
b715be5cf3978fbe589b03b09c9398d0d791f850
32,391,959,161,366,673,000,000,000,000,000,000,000
26
Fix authentication bypass bug The client could bypass the password check by continuing after getting error from the server and guessing the network parameters. The server would still accept the rest of the setup and also network traffic. Add checks for normal and raw mode that user has authenticated before allowing a...
irda_queue_t *hashbin_get_next( hashbin_t *hashbin) { irda_queue_t* entry; int bin; int i; IRDA_ASSERT( hashbin != NULL, return NULL;); IRDA_ASSERT( hashbin->magic == HB_MAGIC, return NULL;); if ( hashbin->hb_current == NULL) { IRDA_ASSERT( hashbin->hb_current != NULL, return NULL;); return NULL; } entry ...
0
[ "CWE-200" ]
linux
4c03b862b12f980456f9de92db6d508a4999b788
136,029,563,542,032,980,000,000,000,000,000,000,000
46
irda: Fix lockdep annotations in hashbin_delete(). A nested lock depth was added to the hasbin_delete() code but it doesn't actually work some well and results in tons of lockdep splats. Fix the code instead to properly drop the lock around the operation and just keep peeking the head of the hashbin queue. Reported-...
gs_grab_keyboard_reset (GSGrab *grab) { if (grab->priv->keyboard_grab_window != NULL) { g_object_remove_weak_pointer (G_OBJECT (grab->priv->keyboard_grab_window), (gpointer *) &grab->priv->keyboard_grab_window); } grab->priv->keyboard...
0
[]
gnome-screensaver
f93a22c175090cf02e80bc3ee676b53f1251f685
290,466,413,270,359,450,000,000,000,000,000,000,000
9
Nullify grab window variables when windows are destroyed If we don't do this then there is a time period where the grab window variables contain dangling pointers which can cause crashes. Part of fix for https://bugzilla.gnome.org/show_bug.cgi?id=609789
tty_client_ready(struct client *c, struct window_pane *wp) { if (c->session == NULL || c->tty.term == NULL) return (0); if (c->flags & (CLIENT_REDRAWWINDOW|CLIENT_SUSPENDED)) return (0); if (c->tty.flags & TTY_FREEZE) return (0); if (c->session->curw->window != wp->window) return (0); if (wp->layout_cell =...
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
108,316,584,091,185,490,000,000,000,000,000,000,000
14
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
TEST(CheckpointVersionTest, MinConsumer) { VersionDef versions; versions.set_producer(TF_CHECKPOINT_VERSION + 1); versions.set_min_consumer(TF_CHECKPOINT_VERSION + 1); VersionTest( versions, strings::StrCat("Checkpoint min consumer version ", TF_CHECKPOINT_VERSION + 1, " above ...
0
[ "CWE-345" ]
tensorflow
368af875869a204b4ac552b9ddda59f6a46a56ec
274,979,962,318,526,840,000,000,000,000,000,000,000
10
Avoid buffer overflow when loading tensors with insufficient data from checkpoints. `CopyDataFromTensorSliceToTensorSlice` does not (and cannot conveniently) provide any bounds checking on its own, so the size is instead checked prior to passing unvalidated data to that function. PiperOrigin-RevId: 392971286 Change-I...
void CLASS process_Sony_0x9406(uchar *buf, ushort len) { if (len < 6) return; short bufx = buf[0]; if ((bufx != 0x01) && (bufx != 0x08) && (bufx != 0x1b)) return; bufx = buf[2]; if ((bufx != 0x08) && (bufx != 0x1b)) return; imgdata.other.BatteryTemperature = (float)(SonySubstitution[buf[5]] - 3...
0
[ "CWE-190" ]
LibRaw
4554e24ce24beaef5d0ef48372801cfd91039076
206,012,371,669,726,960,000,000,000,000,000,000,000
15
parse_qt: possible integer overflow
TEST(ExpressionTypeTest, WithDecimalValue) { assertExpectedResults("$type", {{{Value(Decimal128(0.3))}, Value("decimal"_sd)}}); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
170,334,392,047,764,000,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
**/ CImg<T> rotate(const float u, const float v, const float w, const float angle, const float cx, const float cy, const float cz, const unsigned int interpolation=1, const unsigned int boundary_conditions=0) { const float nangle = cimg::mod(angle,360.f); if (na...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
139,095,696,775,970,570,000,000,000,000,000,000,000
7
.
void pb_controller::start_downloads() { int dl2start = get_maxdownloads() - downloads_in_progress(); for (auto it=downloads_.begin(); dl2start > 0 && it!=downloads_.end(); ++it) { if (it->status() == DL_QUEUED) { std::thread t {poddlthread(&(*it), cfg)}; --dl2start; } } }
0
[ "CWE-78" ]
newsbeuter
26f5a4350f3ab5507bb8727051c87bb04660f333
316,913,059,999,651,140,000,000,000,000,000,000,000
9
Work around shell code in podcast names (#598)
String *Item_func_to_base64::val_str_ascii(String *str) { String *res= args[0]->val_str(str); bool too_long= false; uint64 length; if (!res || res->length() > (uint) base64_encode_max_arg_length() || (too_long= ((uint64) (length= base64_needed_encoded_length((uint64) res->length())) > ...
0
[]
mysql-server
475dcde2c7856dd0050b967099a86c087d94f32f
93,664,651,051,492,130,000,000,000,000,000,000,000
28
Bug#27099029: UNLIMITED LENGTH OF THE PASSWORD Description: my_crypt_genhash depends on the length of plaintext password. Longer the password, more is the time required to produce the transformation. An unusually large password may consume considerable amount of time...
void run() { intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); intrusive_ptr<Expression> expression = ExpressionConstant::create(expCtx, Value(5)); // The constant is replaced with a $ expression. assertBinaryEqual(BSON("field" << BSON("$const" << 5)), t...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
235,174,651,973,371,270,000,000,000,000,000,000,000
6
SERVER-38070 fix infinite loop in agg expression
GF_Err gf_isom_clone_sample_description(GF_ISOFile *the_file, u32 trackNumber, GF_ISOFile *orig_file, u32 orig_track, u32 orig_desc_index, const char *URLname, const char *URNname, u32 *outDescriptionIndex) { GF_TrackBox *trak; GF_BitStream *bs; u8 *data; u32 data_size; GF_Box *entry; GF_Err e; u32 dataRefIndex;...
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
323,125,033,925,555,760,000,000,000,000,000,000,000
62
fixed #1706
static void fetch_register_operand(struct operand *op) { switch (op->bytes) { case 1: op->val = *(u8 *)op->addr.reg; break; case 2: op->val = *(u16 *)op->addr.reg; break; case 4: op->val = *(u32 *)op->addr.reg; break; case 8: op->val = *(u64 *)op->addr.reg; break; } }
0
[]
kvm
e28ba7bb020f07193bc000453c8775e9d2c0dda7
19,082,249,887,263,889,000,000,000,000,000,000,000
17
KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests will crash (and 64bit guests may behave in a wrong way) for example by simply executing following nasm-demo-application: [bits 32] global _start SECTION .text _start: syscall (I tested it with winxp and linux ...
evdev_notify_added_device(struct evdev_device *device) { struct libinput_device *dev; list_for_each(dev, &device->base.seat->devices_list, link) { struct evdev_device *d = evdev_device(dev); if (dev == &device->base) continue; /* Notify existing device d about addition of device */ if (d->dispatch->inter...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
45,178,624,553,888,155,000,000,000,000,000,000,000
29
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
dissect_kafka_message_old(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int end_offset _U_) { proto_item *message_ti; proto_tree *subtree; tvbuff_t *decompressed_tvb; int decompressed_offset; int start_offset = offset; int bytes_offset; gint8 ...
0
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
281,892,750,031,838,430,000,000,000,000,000,000,000
74
Kafka: Limit our decompression size. Don't assume that the Internet has our best interests at heart when it gives us the size of our decompression buffer. Assign an arbitrary limit of 50 MB. This fixes #16739 in that it takes care of ** (process:17681): WARNING **: 20:03:07.440: Dissector bug, protocol Kafka, in pac...
static int usb_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int __user *tlv) { struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol); struct snd_usb_substream *subs = info->private_data; struct audioformat *fp; unsigned int __user *dst; int count = 0; if (size ...
0
[]
linux
836b34a935abc91e13e63053d0a83b24dfb5ea78
315,583,560,298,607,920,000,000,000,000,000,000,000
42
ALSA: usb-audio: Fix double-free in error paths after snd_usb_add_audio_stream() call create_fixed_stream_quirk(), snd_usb_parse_audio_interface() and create_uaxx_quirk() functions allocate the audioformat object by themselves and free it upon error before returning. However, once the object is linked to a stream, it'...
archive_read_format_cpio_bid(struct archive_read *a, int best_bid) { const unsigned char *p; struct cpio *cpio; int bid; (void)best_bid; /* UNUSED */ cpio = (struct cpio *)(a->format->data); if ((p = __archive_read_ahead(a, 6, NULL)) == NULL) return (-1); bid = 0; if (memcmp(p, "070707", 6) == 0) { /* A...
0
[]
libarchive
fd7e0c02e272913a0a8b6d492c7260dfca0b1408
285,029,701,094,338,600,000,000,000,000,000,000,000
62
Reject cpio symlinks that exceed 1MB
static bool check_client_passwd(PgSocket *client, const char *passwd) { char md5[MD5_PASSWD_LEN + 1]; const char *correct; PgUser *user = client->auth_user; /* disallow empty passwords */ if (!*passwd || !*user->passwd) return false; switch (cf_auth_type) { case AUTH_PLAIN: return strcmp(user->passwd, pass...
1
[ "CWE-476" ]
pgbouncer
edab5be6665b9e8de66c25ba527509b229468573
248,998,986,340,285,200,000,000,000,000,000,000,000
26
Check if auth_user is set. Fixes a crash if password packet appears before startup packet (#42).
trad_enc_decrypt_update(struct trad_enc_ctx *ctx, const uint8_t *in, size_t in_len, uint8_t *out, size_t out_len) { unsigned i, max; max = (unsigned)((in_len < out_len)? in_len: out_len); for (i = 0; i < max; i++) { uint8_t t = in[i] ^ trad_enc_decrypt_byte(ctx); out[i] = t; trad_enc_update_keys(ctx, t);...
0
[ "CWE-399", "CWE-401" ]
libarchive
ba641f73f3d758d9032b3f0e5597a9c6e593a505
104,062,848,878,320,040,000,000,000,000,000,000,000
13
Fix typo in preprocessor macro in archive_read_format_zip_cleanup() Frees lzma_stream on cleanup() Fixes #1165
static void rom_free_data(Rom *rom) { if (rom->mapped_file) { g_mapped_file_unref(rom->mapped_file); rom->mapped_file = NULL; } else { g_free(rom->data); } rom->data = NULL; }
0
[ "CWE-787" ]
qemu
e423455c4f23a1a828901c78fe6d03b7dde79319
5,094,859,508,088,565,000,000,000,000,000,000,000
11
hw/core/loader: Fix possible crash in rom_copy() Both, "rom->addr" and "addr" are derived from the binary image that can be loaded with the "-kernel" paramer. The code in rom_copy() then calculates: d = dest + (rom->addr - addr); and uses "d" as destination in a memcpy() some lines later. Now with bad kernel ima...
static void print_relative_line() { uint i; putchar('+'); for (i = 0; i < ex_var_count; i++) { uint j; for (j = 0; j < ex_val_max_len[i] + 2; j++) putchar('-'); putchar('+'); } putchar('\n'); }
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
120,061,850,479,044,600,000,000,000,000,000,000,000
14
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
static enum audit_state audit_filter_task(struct task_struct *tsk, char **key) { struct audit_entry *e; enum audit_state state; rcu_read_lock(); list_for_each_entry_rcu(e, &audit_filter_list[AUDIT_FILTER_TASK], list) { if (audit_filter_rules(tsk, &e->rule, NULL, NULL, &state, true)) { if (state =...
0
[ "CWE-362" ]
linux
43761473c254b45883a64441dd0bc85a42f3645c
216,778,362,187,010,760,000,000,000,000,000,000,000
18
audit: fix a double fetch in audit_log_single_execve_arg() There is a double fetch problem in audit_log_single_execve_arg() where we first check the execve(2) argumnets for any "bad" characters which would require hex encoding and then re-fetch the arguments for logging in the audit record[1]. Of course this leaves a...
static void FVMenuGenerateFamily(GWindow gw, struct gmenuitem *UNUSED(mi), GEvent *UNUSED(e)) { FontView *fv = (FontView *) GDrawGetUserData(gw); _FVMenuGenerate(fv,gf_macfamily); }
0
[ "CWE-119", "CWE-787" ]
fontforge
626f751752875a0ddd74b9e217b6f4828713573c
13,657,956,787,028,955,000,000,000,000,000,000,000
5
Warn users before discarding their unsaved scripts (#3852) * Warn users before discarding their unsaved scripts This closes #3846.
unsigned long agp_generic_mask_memory(struct agp_bridge_data *bridge, dma_addr_t addr, int type) { /* memory type is ignored in the generic routine */ if (bridge->driver->masks) return addr | bridge->driver->masks[0].mask; else return addr; }
0
[ "CWE-190" ]
linux-2.6
194b3da873fd334ef183806db751473512af29ce
185,863,659,382,739,350,000,000,000,000,000,000,000
9
agp: fix arbitrary kernel memory writes pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl cmds of agp_ioctl() and passed to agpioc_bind_wrap(). As said in the comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND, and it is not checked at all in case of AGPIOC_UNBIND. As a resu...
struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority) { struct proto *prot = READ_ONCE(sk->sk_prot); struct sk_filter *filter; bool is_charged = true; struct sock *newsk; newsk = sk_prot_alloc(prot, priority, sk->sk_family); if (!newsk) goto out; sock_copy(newsk, sk); newsk->sk_prot_creat...
0
[]
net
35306eb23814444bd4021f8a1c3047d3cb0c8b2b
228,914,714,418,549,670,000,000,000,000,000,000,000
120
af_unix: fix races in sk_peer_pid and sk_peer_cred accesses Jann Horn reported that SO_PEERCRED and SO_PEERGROUPS implementations are racy, as af_unix can concurrently change sk_peer_pid and sk_peer_cred. In order to fix this issue, this patch adds a new spinlock that needs to be used whenever these fields are read o...
LWZReadByte_(gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, int *ZeroDataBlockP) { int code, incode, i; if(flag) { sd->set_code_size = input_code_size; sd->code_size = sd->set_code_size + 1; sd->clear_code = 1 << sd->set_code_size; sd->end_code = sd->clear_code + 1; sd->max_code_size = 2...
0
[ "CWE-681" ]
libgd
a11f47475e6443b7f32d21f2271f28f417e2ac04
156,364,749,022,413,220,000,000,000,000,000,000,000
135
Fix #420: Potential infinite loop in gdImageCreateFromGifCtx Due to a signedness confusion in `GetCode_` a corrupt GIF file can trigger an infinite loop. Furthermore we make sure that a GIF without any palette entries is treated as invalid *after* open palette entries have been removed. CVE-2018-5711 See also https...
TfLiteStatus ValidateCustomAllocationForTensor( TfLiteContext* context, const TfLiteTensor* tensor, const TfLiteCustomAllocation& allocation) { TF_LITE_ENSURE(context, allocation.data != nullptr); TF_LITE_ENSURE(context, allocation.bytes >= tensor->bytes); // Ensure provided memory is aligned to what TFLi...
0
[ "CWE-20", "CWE-787" ]
tensorflow
d58c96946b2880991d63d1dacacb32f0a4dfa453
113,866,503,202,185,260,000,000,000,000,000,000,000
10
[tflite] Ensure inputs and outputs don't overlap. If a model uses the same tensor for both an input and an output then this can result in data loss and memory corruption. This should not happen. PiperOrigin-RevId: 332522916 Change-Id: If0905b142415a9dfceaf2d181872f2a8fb88f48a
dp_packet_get_send_len(const struct dp_packet *b) { return dp_packet_size(b) - dp_packet_get_cutlen(b); }
0
[ "CWE-400" ]
ovs
79349cbab0b2a755140eedb91833ad2760520a83
286,037,949,921,700,530,000,000,000,000,000,000,000
4
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
print_ascii_dump_tree(FILE * f, struct tree *tree, int count) { struct tree *tp; count++; for (tp = tree->child_list; tp; tp = tp->next_peer) { fprintf(f, "%s OBJECT IDENTIFIER ::= { %s %ld }\n", tp->label, tree->label, tp->subid); } for (tp = tree->child_list; tp; tp = t...
0
[ "CWE-59", "CWE-61" ]
net-snmp
4fd9a450444a434a993bc72f7c3486ccce41f602
231,744,711,264,139,100,000,000,000,000,000,000,000
14
CHANGES: snmpd: Stop reading and writing the mib_indexes/* files Caching directory contents is something the operating system should do and is not something Net-SNMP should do. Instead of storing a copy of the directory contents in ${tmp_dir}/mib_indexes/${n}, always scan a MIB directory.
efi_thunk_query_variable_info(u32 attr, u64 *storage_space, u64 *remaining_space, u64 *max_variable_size) { efi_status_t status; u32 phys_storage, phys_remaining, phys_max; unsigned long flags; if (efi.runtime_version < EFI_2_00_SYSTEM_TABLE_REVISION) return EFI_UNSUPPORTED; spin_lock_irqsave...
0
[ "CWE-388" ]
tip
4e78921ba4dd0aca1cc89168f45039add4183f8e
104,739,010,261,402,320,000,000,000,000,000,000,000
24
efi/x86/Add missing error handling to old_memmap 1:1 mapping code The old_memmap flow in efi_call_phys_prolog() performs numerous memory allocations, and either does not check for failure at all, or it does but fails to propagate it back to the caller, which may end up calling into the firmware with an incomplete 1:1 ...
static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port) { struct usb_serial *serial = port->serial; struct mct_u232_private *priv = usb_get_serial_port_data(port); int retval = 0; unsigned int control_state; unsigned long flags; unsigned char last_lcr; unsigned char last_msr; /* Compens...
0
[ "CWE-703" ]
linux
4e9a0b05257f29cf4b75f3209243ed71614d062e
261,996,602,691,704,400,000,000,000,000,000,000,000
67
USB: mct_u232: add sanity checking in probe An attack using the lack of sanity checking in probe is known. This patch checks for the existence of a second port. CVE-2016-3136 Signed-off-by: Oliver Neukum <ONeukum@suse.com> CC: stable@vger.kernel.org [johan: add error message ] Signed-off-by: Johan Hovold <johan@kern...
find_field_in_table_ref(THD *thd, TABLE_LIST *table_list, const char *name, size_t length, const char *item_name, const char *db_name, const char *table_name, Item **ref, bool check_privileges, bool allow_rowid, ...
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
324,281,796,024,023,180,000,000,000,000,000,000,000
162
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
static int lockState(const char *stateFilename, int skip_state_lock) { int lockFd; struct stat sb; if (!strcmp(stateFilename, "/dev/null")) { return 0; } lockFd = open(stateFilename, O_RDWR | O_CLOEXEC); if (lockFd == -1) { if (errno == ENOENT) { message(MESS_DEBUG,...
0
[ "CWE-732" ]
logrotate
1f76a381e2caa0603ae3dbc51ed0f1aa0d6658b9
271,500,575,342,368,400,000,000,000,000,000,000,000
69
skip locking if state file is world-readable Fixes: CVE-2022-1348 - potential DoS from unprivileged users via the state file Bug: https://bugzilla.redhat.com/CVE-2022-1348
void DispatcherThread::OnNotify() { // this could unlock during the dispatch, but OnResult isn't expected to take that long this->LockQueue(); for(ResultQueue::iterator i = Parent->rq.begin(); i != Parent->rq.end(); i++) { MySQLresult* res = i->r; if (res->err.id == SQL_NO_ERROR) i->q->OnResult(*res); else...
0
[ "CWE-476" ]
inspircd
2cc35d8625b7ea5cbd1d1ebb116aff86c5280162
264,658,443,932,931,420,000,000,000,000,000,000,000
17
Initialise and deallocate the MySQL library correctly.
static float TIFFClampDoubleToFloat( double val ) { if( val > FLT_MAX ) return FLT_MAX; if( val < -FLT_MAX ) return -FLT_MAX; return (float)val; }
0
[ "CWE-617" ]
libtiff
de144fd228e4be8aa484c3caf3d814b6fa88c6d9
160,369,462,983,505,650,000,000,000,000,000,000,000
8
TIFFWriteDirectorySec: avoid assertion. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2795. CVE-2018-10963
__releases(&info->lock) { struct fb_info * const info = file->private_data; mutex_lock(&info->lock); if (info->fbops->fb_release) info->fbops->fb_release(info,1); module_put(info->fbops->owner); mutex_unlock(&info->lock); put_fb_info(info); return 0; }
0
[ "CWE-703", "CWE-189" ]
linux
fc9bbca8f650e5f738af8806317c0a041a48ae4a
94,675,873,763,837,600,000,000,000,000,000,000,000
12
vm: convert fb_mmap to vm_iomap_memory() helper This is my example conversion of a few existing mmap users. The fb_mmap() case is a good example because it is a bit more complicated than some: fb_mmap() mmaps one of two different memory areas depending on the page offset of the mmap (but happily there is never any mi...
static void *sgpd_parse_entry(u32 grouping_type, GF_BitStream *bs, u32 entry_size, u32 *total_bytes) { Bool null_size_ok = GF_FALSE; GF_DefaultSampleGroupDescriptionEntry *ptr; switch (grouping_type) { case GF_ISOM_SAMPLE_GROUP_ROLL: case GF_ISOM_SAMPLE_GROUP_PROL: { GF_RollRecoveryEntry *ptr; GF_SAFEALLOC(...
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
14,037,492,123,830,672,000,000,000,000,000,000,000
165
prevent dref memleak on invalid input (#1183)
static bool test_if_create_new_users(THD *thd) { Security_context *sctx= thd->security_ctx; bool create_new_users= MY_TEST(sctx->master_access & INSERT_ACL) || (!opt_safe_user_create && MY_TEST(sctx->master_access & CREATE_USER_ACL)); if (!create_new_users) { ...
0
[]
mysql-server
25d1b7e03b9b375a243fabdf0556c063c7282361
311,276,294,801,745,980,000,000,000,000,000,000,000
24
Bug #22722946: integer overflow may lead to wrong results in get_56_lenc_string
frame_new_width( frame_T *topfrp, int width, int leftfirst, // resize leftmost contained frame first int wfw) // obey 'winfixwidth' when there is a choice; // may cause the width not to be set { frame_T *frp; int extra_cols; int w; win_T *wp; if (topfrp->fr_layout == FR_LE...
0
[ "CWE-476" ]
vim
0f6e28f686dbb59ab3b562408ab9b2234797b9b1
178,321,470,583,393,520,000,000,000,000,000,000,000
109
patch 8.2.4428: crash when switching tabpage while in the cmdline window Problem: Crash when switching tabpage while in the cmdline window. Solution: Disallow switching tabpage when in the cmdline window.
static RBinFile *r_bin_file_new(RBin *bin, const char *file, const ut8 *bytes, ut64 sz, ut64 file_sz, int rawstr, int fd, const char *xtrname, Sdb *sdb, bool steal_ptr) { RBinFile *binfile = R_NEW0 (RBinFile); if (!binfile) { return NULL; } if (!r_id_pool_grab_id (bin->file_ids, &binfile->id)) { if (s...
0
[ "CWE-125" ]
radare2
d31c4d3cbdbe01ea3ded16a584de94149ecd31d9
239,399,623,426,672,930,000,000,000,000,000,000,000
50
Fix #8748 - Fix oobread on string search
static void b43_op_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) { struct b43_wl *wl = hw_to_b43_wl(hw); struct b43_wldev *dev = wl->current_dev; b43dbg(wl, "Removing Interface type %d\n", vif->type); mutex_lock(&wl->mutex); B43_WARN_ON(!wl->operating); B43_WARN_ON(wl->vif != vif...
0
[ "CWE-134" ]
wireless
9538cbaab6e8b8046039b4b2eb6c9d614dc782bd
205,816,475,791,465,600,000,000,000,000,000,000,000
22
b43: stop format string leaking into error msgs The module parameter "fwpostfix" is userspace controllable, unfiltered, and is used to define the firmware filename. b43_do_request_fw() populates ctx->errors[] on error, containing the firmware filename. b43err() parses its arguments as a format string. For systems with...
int device_create_file(struct device *dev, const struct device_attribute *attr) { int error = 0; if (dev) { WARN(((attr->attr.mode & S_IWUGO) && !attr->store), "Attribute %s: write permission without 'store'\n", attr->attr.name); WARN(((attr->attr.mode & S_IRUGO) && !attr->show), "Attribute %s:...
0
[ "CWE-787" ]
linux
aa838896d87af561a33ecefea1caa4c15a68bc47
280,286,016,386,890,200,000,000,000,000,000,000,000
17
drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions Convert the various sprintf fmaily calls in sysfs device show functions to sysfs_emit and sysfs_emit_at for PAGE_SIZE buffer safety. Done with: $ spatch -sp-file sysfs_emit_dev.cocci --in-place --max-width=80 . And cocci script: $ cat s...
static int replmd_rename_callback(struct ldb_request *req, struct ldb_reply *ares) { struct ldb_context *ldb; struct ldb_request *down_req; struct ldb_message *msg; const struct dsdb_attribute *rdn_attr; const char *rdn_name; const struct ldb_val *rdn_val; const char *attrs[5] = { NULL, }; time_t t = time(NULL)...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
201,675,677,910,638,900,000,000,000,000,000,000,000
185
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
static void extract_buf(struct entropy_store *r, __u8 *out) { int i; union { __u32 w[5]; unsigned long l[LONGS(20)]; } hash; __u32 workspace[SHA1_WORKSPACE_WORDS]; unsigned long flags; /* * If we have an architectural hardware random number * generator, use it for SHA's initial vector */ sha1_init(has...
0
[ "CWE-200", "CWE-330" ]
linux
f227e3ec3b5cad859ad15666874405e8c1bbc1d4
320,862,603,012,899,540,000,000,000,000,000,000,000
53
random32: update the net random state on interrupt and activity This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note that depending on some network devices'...
static void _slurm_rpc_submit_batch_pack_job(slurm_msg_t *msg) { static int select_serial = -1; static int active_rpc_cnt = 0; ListIterator iter; int error_code = SLURM_SUCCESS, alloc_only = 0; DEF_TIMERS; uint32_t pack_job_id = 0, pack_job_offset = 0; struct job_record *job_ptr = NULL, *first_job_ptr = NULL; s...
0
[ "CWE-20" ]
slurm
033dc0d1d28b8d2ba1a5187f564a01c15187eb4e
43,659,462,090,219,440,000,000,000,000,000,000,000
274
Fix insecure handling of job requested gid. Only trust MUNGE signed values, unless the RPC was signed by SlurmUser or root. CVE-2018-10995.
mesh_detect_cycle(struct module_qstate* qstate, struct query_info* qinfo, uint16_t flags, int prime, int valrec) { struct mesh_area* mesh = qstate->env->mesh; struct mesh_state* dep_m = NULL; dep_m = mesh_area_find(mesh, NULL, qinfo, flags, prime, valrec); return mesh_detect_cycle_found(qstate, dep_m); }
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
310,364,142,277,998,700,000,000,000,000,000,000,000
8
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
static int __net_init dccp_v4_init_net(struct net *net) { if (dccp_hashinfo.bhash == NULL) return -ESOCKTNOSUPPORT; return inet_ctl_sock_create(&net->dccp.v4_ctl_sk, PF_INET, SOCK_DCCP, IPPROTO_DCCP, net); }
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
64,286,911,393,009,150,000,000,000,000,000,000,000
8
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
void createCallback(v8::Isolate* isolate, v8::Handle<v8::Function> callback) { WRITE_LOCKER(writeLocker, _callbacksLock); auto it = _callbacks.find(isolate); if (it == _callbacks.end()) { _callbacks[isolate].Reset(isolate, callback); } else { LOG_TOPIC("982a6", ERR, Logger::V8) << "canno...
0
[ "CWE-918" ]
arangodb
d9b7f019d2435f107b19a59190bf9cc27d5f34dd
85,370,386,999,189,740,000,000,000,000,000,000,000
11
[APM-78] Disable installation from remote URL (#15292)
static int bcf_hdr_set_idx(bcf_hdr_t *hdr, int dict_type, const char *tag, bcf_idinfo_t *idinfo) { size_t new_n; // If available, preserve existing IDX if ( idinfo->id==-1 ) idinfo->id = hdr->n[dict_type]; else if ( idinfo->id < hdr->n[dict_type] && hdr->id[dict_type][idinfo->id].key ) { ...
0
[ "CWE-787" ]
htslib
dcd4b7304941a8832fba2d0fc4c1e716e7a4e72c
29,285,882,631,440,893,000,000,000,000,000,000,000
28
Fix check for VCF record size The check for excessive record size in vcf_parse_format() only looked at individual fields. It was therefore possible to exceed the limit and overflow fmt_aux_t::offset by having multiple fields with a combined size that went over INT_MAX. Fix by including the amount of memory used so fa...
virtual ~CoalesceProvider() { }
0
[ "CWE-399", "CWE-674" ]
qpdf
b4d6cf6836ce025ba1811b7bbec52680c7204223
222,846,440,599,762,040,000,000,000,000,000,000,000
3
Limit depth of nesting in direct objects (fixes #202) This fixes CVE-2018-9918.
rb_str_tr(VALUE str, VALUE src, VALUE repl) { str = rb_str_dup(str); tr_trans(str, src, repl, 0); return str; }
0
[ "CWE-119" ]
ruby
1c2ef610358af33f9ded3086aa2d70aac03dcac5
274,908,742,428,473,540,000,000,000,000,000,000,000
6
* string.c (rb_str_justify): CVE-2009-4124. Fixes a bug reported by Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London; Patch by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
emulate_syscall(struct x86_emulate_ctxt *ctxt) { struct decode_cache *c = &ctxt->decode; struct kvm_segment cs, ss; u64 msr_data; /* syscall is not available in real mode */ if (c->lock_prefix || ctxt->mode == X86EMUL_MODE_REAL || !(ctxt->vcpu->arch.cr0 & X86_CR0_PE)) return -1; setup_syscalls_segments(ctxt...
0
[ "CWE-20" ]
kvm
e42d9b8141d1f54ff72ad3850bb110c95a5f3b88
82,639,604,199,765,420,000,000,000,000,000,000,000
48
KVM: x86 emulator: limit instructions to 15 bytes While we are never normally passed an instruction that exceeds 15 bytes, smp games can cause us to attempt to interpret one, which will cause large latencies in non-preempt hosts. Cc: stable@kernel.org Signed-off-by: Avi Kivity <avi@redhat.com>
d_lite_cweek(VALUE self) { get_d1(self); return INT2FIX(m_cweek(dat)); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
60,676,965,645,002,020,000,000,000,000,000,000,000
5
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
static double Sinc(const double x, const ResizeFilter *magick_unused(resize_filter)) { magick_unreferenced(resize_filter); /* Scaled sinc(x) function using a trig call: sinc(x) == sin(pi x)/(pi x). */ if (x != 0.0) { const double alpha=(double) (MagickPI*x); return(sin((double) alph...
0
[ "CWE-125" ]
ImageMagick
c5402b6e0fcf8b694ae2af6a6652ebb8ce0ccf46
300,297,539,952,648,600,000,000,000,000,000,000,000
16
https://github.com/ImageMagick/ImageMagick/issues/717
jpeg_start_output(j_decompress_ptr cinfo, int scan_number) { if (cinfo->global_state != DSTATE_BUFIMAGE && cinfo->global_state != DSTATE_PRESCAN) ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state); /* Limit scan number to valid range */ if (scan_number <= 0) scan_number = 1; if (cinfo->inputctl-...
0
[]
libjpeg-turbo
6d2e8837b440ce4d8befd805a5abc0d351028d70
49,248,294,930,922,720,000,000,000,000,000,000,000
14
jpeg_skip_scanlines(): Avoid NULL + 0 UBSan error This error occurs at the call to (*cinfo->cconvert->color_convert)() in sep_upsample() whenever cinfo->upsample->need_context_rows == TRUE (i.e. whenever h2v2 or h1v2 fancy upsampling is used.) The error is innocuous, since (*cinfo->cconvert->color_convert)() points t...
static int checkout_data_init( checkout_data *data, git_iterator *target, const git_checkout_options *proposed) { int error = 0; git_repository *repo = git_iterator_owner(target); memset(data, 0, sizeof(*data)); if (!repo) { git_error_set(GIT_ERROR_CHECKOUT, "cannot checkout nothing"); return -1; } if (...
0
[ "CWE-20", "CWE-706" ]
libgit2
64c612cc3e25eff5fb02c59ef5a66ba7a14751e4
304,738,073,519,441,260,000,000,000,000,000,000,000
176
Protect against 8.3 "short name" attacks also on Linux/macOS The Windows Subsystem for Linux (WSL) is getting increasingly popular, in particular because it makes it _so_ easy to run Linux software on Windows' files, via the auto-mounted Windows drives (`C:\` is mapped to `/mnt/c/`, no need to set that up manually). ...
proxy_C_GetInfo (CK_X_FUNCTION_LIST *self, CK_INFO_PTR info) { State *state = (State *)self; CK_RV rv = CKR_OK; p11_library_init_once (); return_val_if_fail (info != NULL, CKR_ARGUMENTS_BAD); p11_lock (); if (!PROXY_VALID (state->px)) rv = CKR_CRYPTOKI_NOT_INITIALIZED; p11_unlock (); ...
0
[ "CWE-190" ]
p11-kit
5307a1d21a50cacd06f471a873a018d23ba4b963
210,186,867,206,549,580,000,000,000,000,000,000,000
30
Check for arithmetic overflows before allocating
__archive_read_register_format(struct archive_read *a, void *format_data, const char *name, int (*bid)(struct archive_read *, int), int (*options)(struct archive_read *, const char *, const char *), int (*read_header)(struct archive_read *, struct archive_entry *), int (*read_data)(struct archiv...
0
[ "CWE-125" ]
libarchive
e6c9668f3202215ddb71617b41c19b6f05acf008
219,649,569,867,922,470,000,000,000,000,000,000,000
44
Add a check to archive_read_filter_consume to reject any attempts to move the file pointer by a negative amount. Note: Either this or commit 3865cf2 provides a fix for Issue 394.
static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio) { OPJ_UINT32 n = 0; while (opj_bio_read(bio, 1)) { ++n; } return n; }
0
[ "CWE-416", "CWE-787" ]
openjpeg
c535531f03369623b9b833ef41952c62257b507e
194,188,375,564,490,330,000,000,000,000,000,000,000
8
opj_t2_encode_packet(): fix potential write heap buffer overflow (#992)
static int vmx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info) { struct vcpu_vmx *vmx = to_vmx(vcpu); struct vmx_uret_msr *msr; u32 index; switch (msr_info->index) { #ifdef CONFIG_X86_64 case MSR_FS_BASE: msr_info->data = vmcs_readl(GUEST_FS_BASE); break; case MSR_GS_BASE: msr_info->data = vmcs_r...
0
[ "CWE-703" ]
linux
6cd88243c7e03845a450795e134b488fc2afb736
191,313,365,576,148,660,000,000,000,000,000,000,000
149
KVM: x86: do not report a vCPU as preempted outside instruction boundaries If a vCPU is outside guest mode and is scheduled out, it might be in the process of making a memory access. A problem occurs if another vCPU uses the PV TLB flush feature during the period when the vCPU is scheduled out, and a virtual address ...
Magick_Orientation_from_Exif_Orientation(const int orientation) { switch (orientation) { case 1: return TopLeftOrientation; case 2: return TopRightOrientation; case 3: return BottomRightOrientation; case 4: return BottomLeftOrientation; case 5: return LeftTopOrienta...
0
[ "CWE-772" ]
ImageMagick
4d6accd355119d54429a86a1859b8329f0130f30
155,210,254,523,731,800,000,000,000,000,000,000,000
25
https://github.com/ImageMagick/ImageMagick/issues/902
uint32_t CompactProtocolWriter::serializedSizeListEnd() const { return 0; }
0
[ "CWE-703", "CWE-770" ]
fbthrift
c9a903e5902834e95bbd4ab0e9fa53ba0189f351
279,747,157,823,623,000,000,000,000,000,000,000,000
3
Better handling of truncated data when reading strings Summary: Currently we read string size and blindly pre-allocate it. This allows malicious attacker to send a few bytes message and cause server to allocate huge amount of memory (>1GB). This diff changes the logic to check if we have enough data in the buffer bef...
void SplashOutputDev::startDoc(PDFDoc *docA) { int i; doc = docA; if (fontEngine) { delete fontEngine; } fontEngine = new SplashFontEngine( globalParams->getEnableFreeType(), enableFreeTypeHinting, enableSlightHinting, getFontAntialias() && colorMode != splashM...
0
[ "CWE-369" ]
poppler
b224e2f5739fe61de9fa69955d016725b2a4b78d
308,820,964,201,409,680,000,000,000,000,000,000,000
18
SplashOutputDev::tilingPatternFill: Fix crash on broken file Issue #802
yang_free_type_union(struct ly_ctx *ctx, struct lys_type *type) { struct lys_type *stype; struct yang_type *yang; unsigned int i; for (i = 0; i < type->info.uni.count; ++i) { stype = &type->info.uni.types[i]; if (stype->base == LY_TYPE_DER) { yang = (struct yang_type *)stype...
0
[ "CWE-415" ]
libyang
d9feacc4a590d35dbc1af21caf9080008b4450ed
114,771,769,780,416,250,000,000,000,000,000,000,000
18
yang parser BUGFIX double free Fixes #742
static void __init sm7xx_vga_setup(char *options) { int i; if (!options || !*options) return; smtc_scr_info.lfb_width = 0; smtc_scr_info.lfb_height = 0; smtc_scr_info.lfb_depth = 0; pr_debug("%s = %s\n", __func__, options); for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) { if (strstr(options, vesa_mode...
0
[ "CWE-787" ]
linux-fbdev
bd771cf5c4254511cc4abb88f3dab3bd58bdf8e8
5,574,346,343,997,049,000,000,000,000,000,000,000
23
video: fbdev: sm712fb: Fix crash in smtcfb_read() Zheyu Ma reported this crash in the sm712fb driver when reading three bytes from the framebuffer: BUG: unable to handle page fault for address: ffffc90001ffffff RIP: 0010:smtcfb_read+0x230/0x3e0 Call Trace: vfs_read+0x198/0xa00 ? do_sys_openat2+0x27d/0x350 ? ...
int hfi1_set_uevent_bits(struct hfi1_pportdata *ppd, const int evtbit) { struct hfi1_ctxtdata *uctxt; struct hfi1_devdata *dd = ppd->dd; u16 ctxt; if (!dd->events) return -EINVAL; for (ctxt = dd->first_dyn_alloc_ctxt; ctxt < dd->num_rcv_contexts; ctxt++) { uctxt = hfi1_rcd_get_by_index(dd, ctxt); if ...
0
[ "CWE-416" ]
linux
3d2a9d642512c21a12d19b9250e7a835dcb41a79
237,277,575,549,301,860,000,000,000,000,000,000,000
29
IB/hfi1: Ensure correct mm is used at all times Two earlier bug fixes have created a security problem in the hfi1 driver. One fix aimed to solve an issue where current->mm was not valid when closing the hfi1 cdev. It attempted to do this by saving a cached value of the current->mm pointer at file open time. This is a ...
static int do_last(struct nameidata *nd, struct file *file, const struct open_flags *op, int *opened) { struct dentry *dir = nd->path.dentry; int open_flag = op->open_flag; bool will_truncate = (open_flag & O_TRUNC) != 0; bool got_write = false; int acc_mode = op->acc_mode; unsigned seq; struct inode *...
0
[ "CWE-362", "CWE-399" ]
linux
49d31c2f389acfe83417083e1208422b4091cd9e
259,830,873,022,176,200,000,000,000,000,000,000,000
177
dentry name snapshots take_dentry_name_snapshot() takes a safe snapshot of dentry name; if the name is a short one, it gets copied into caller-supplied structure, otherwise an extra reference to external name is grabbed (those are never modified). In either case the pointer to stable string is stored into the same st...
FLAC_API FLAC__bool FLAC__stream_decoder_process_until_end_of_stream(FLAC__StreamDecoder *decoder) { FLAC__bool dummy; FLAC__ASSERT(0 != decoder); FLAC__ASSERT(0 != decoder->protected_); while(1) { switch(decoder->protected_->state) { case FLAC__STREAM_DECODER_SEARCH_FOR_METADATA: if(!find_metadata_(decod...
0
[ "CWE-119" ]
flac
5b3033a2b355068c11fe637e14ac742d273f076e
265,188,880,891,348,300,000,000,000,000,000,000,000
33
src/libFLAC/stream_decoder.c : Fix buffer read overflow. This is CVE-2014-8962. Reported-by: Michele Spagnuolo, Google Security Team <mikispag@google.com>
static int packet_release(struct socket *sock) { struct sock *sk = sock->sk; struct packet_sock *po; struct net *net; struct tpacket_req req; if (!sk) return 0; net = sock_net(sk); po = pkt_sk(sk); spin_lock_bh(&net->packet.sklist_lock); sk_del_node_init_rcu(sk); sock_prot_inuse_add(net, sk->sk_prot, -1)...
0
[ "CWE-909" ]
linux-2.6
67286640f638f5ad41a946b9a3dc75327950248f
180,159,095,409,167,000,000,000,000,000,000,000,000
55
net: packet: fix information leak to userland packet_getname_spkt() doesn't initialize all members of sa_data field of sockaddr struct if strlen(dev->name) < 13. This structure is then copied to userland. It leads to leaking of contents of kernel stack memory. We have to fully fill sa_data with strncpy() instead of ...
static int memory_access_ok(struct vhost_dev *d, struct vhost_memory *mem, int log_all) { int i; for (i = 0; i < d->nvqs; ++i) { int ok; bool log; mutex_lock(&d->vqs[i]->mutex); log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); /* If ring is inactive, will check when it's enabled. */ ...
0
[ "CWE-399" ]
linux
7932c0bd7740f4cd2aa168d3ce0199e7af7d72d5
290,579,984,148,080,500,000,000,000,000,000,000,000
22
vhost: actually track log eventfd file While reviewing vhost log code, I found out that log_file is never set. Note: I haven't tested the change (QEMU doesn't use LOG_FD yet). Cc: stable@vger.kernel.org Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
_outCreateStmtInfo(StringInfo str, const CreateStmt *node) { WRITE_NODE_FIELD(relation); WRITE_NODE_FIELD(tableElts); WRITE_NODE_FIELD(inhRelations); WRITE_NODE_FIELD(ofTypename); WRITE_NODE_FIELD(constraints); WRITE_NODE_FIELD(options); WRITE_ENUM_FIELD(oncommit, OnCommitAction); WRITE_STRING_FIELD(tablespacen...
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
49,234,862,200,029,305,000,000,000,000,000,000,000
12
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
static void ldapsrv_process_call_trigger(struct tevent_req *req, void *private_data) { struct ldapsrv_process_call_state *state = tevent_req_data(req, struct ldapsrv_process_call_state); struct ldapsrv_connection *conn = state->call->conn; NTSTATUS status; if (conn->deferred_expire_disconnect != NULL) { ...
0
[ "CWE-703" ]
samba
f9b2267c6eb8138fc94df7a138ad5d87526f1d79
125,889,709,267,654,010,000,000,000,000,000,000,000
61
CVE-2021-3670 ldap_server: Ensure value of MaxQueryDuration is greater than zero BUG: https://bugzilla.samba.org/show_bug.cgi?id=14694 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> (cherry picked from commit e1ab0c43629686d1d2c0b0b2bcdc90057...
static void jbig2_global_data_finalize(const gs_memory_t *cmem, void *vptr) { s_jbig2_global_data_t *st = vptr; (void)cmem; /* unused */ if (st->data) s_jbig2decode_free_global_data(st->data); st->data = NULL; }
0
[ "CWE-704" ]
ghostpdl
ef252e7dc214bcbd9a2539216aab9202848602bb
285,805,991,626,828,540,000,000,000,000,000,000,000
8
Bug #700168 - add a type check Bug #700168 "Type confusion in JBIG2Decode" The code was assuming that .jbig2globalctx was a structure allocated by the graphics library, without checking. Add a check to see that it is a structure and that its the correct type of structure.
GF_Err emsg_box_dump(GF_Box *a, FILE * trace) { GF_EventMessageBox *p = (GF_EventMessageBox *) a; gf_isom_box_dump_start(a, "EventMessageBox", trace); fprintf(trace, "timescale=\"%u\" presentation_time%s=\""LLU"\" event_duration=\"%u\" event_id=\"%u\"", p->timescale, (p->version==0) ? "_delta" : "", p->presentati...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
156,534,954,183,858,280,000,000,000,000,000,000,000
20
fixed #2138
void scheduler_ipi(void) { /* * Fold TIF_NEED_RESCHED into the preempt_count; anybody setting * TIF_NEED_RESCHED remotely (for the first time) will also send * this IPI. */ preempt_fold_need_resched(); if (llist_empty(&this_rq()->wake_list) && !tick_nohz_full_cpu(smp_processor_id()) && !got_nohz_idle_...
0
[ "CWE-200" ]
linux
4efbc454ba68def5ef285b26ebfcfdb605b52755
277,081,302,190,651,850,000,000,000,000,000,000,000
40
sched: Fix information leak in sys_sched_getattr() We're copying the on-stack structure to userspace, but forgot to give the right number of bytes to copy. This allows the calling process to obtain up to PAGE_SIZE bytes from the stack (and possibly adjacent kernel memory). This fix copies only as much as we actually ...
static MagickBooleanType ReadPSDChannel(Image *image,const PSDInfo *psd_info, LayerInfo* layer_info,const size_t channel, const PSDCompressionType compression,ExceptionInfo *exception) { Image *channel_image, *mask; MagickOffsetType offset; MagickBooleanType status; channel_image=image; ...
0
[]
ImageMagick
bd9f1e7d1bd2c8e2cf7895d133c5c5b5cd3526b6
211,694,111,348,864,170,000,000,000,000,000,000,000
105
Fixed memory leak when reading incorrect PSD files
void http_context_headers(php_stream_context* context, zend_bool has_authorization, zend_bool has_proxy_authorization, zend_bool has_cookies, smart_str* soap_headers) { zval *tmp; if (context && (tmp = php_strea...
0
[ "CWE-20" ]
php-src
eaf4e77190d402ea014207e9a7d5da1a4f3727ba
176,104,317,968,966,900,000,000,000,000,000,000,000
68
Fix bug #71610: Type Confusion Vulnerability - SOAP / make_http_soap_request()
void server_driver_message(Server *s, pid_t object_pid, const char *message_id, const char *format, ...) { struct iovec *iovec; size_t n = 0, k, m; va_list ap; int r; assert(s); assert(format); m = N_IOVEC_META_FIELDS + 5 + N_IOVEC_PAYLOAD_FIELDS + client_cont...
0
[ "CWE-770" ]
systemd
084eeb865ca63887098e0945fb4e93c852b91b0f
118,623,479,649,584,900,000,000,000,000,000,000,000
48
journald: do not store the iovec entry for process commandline on stack This fixes a crash where we would read the commandline, whose length is under control of the sending program, and then crash when trying to create a stack allocation for it. CVE-2018-16864 https://bugzilla.redhat.com/show_bug.cgi?id=1653855 The ...
static void StoreToken(TokenInfo *token_info,char *string, size_t max_token_length,int c) { register ssize_t i; if ((token_info->offset < 0) || ((size_t) token_info->offset >= (max_token_length-1))) return; i=token_info->offset++; string[i]=(char) c; if (token_info->state == IN_QUOTE) ret...
0
[ "CWE-125" ]
ImageMagick
787f9dc99c8d186ae26ed53ddec54bd0a6f90852
198,736,306,127,489,370,000,000,000,000,000,000,000
29
https://github.com/ImageMagick/ImageMagick/issues/539
static int r_cmd_java_print_class_access_flags_value( const char * flags ){ ut16 result = r_bin_java_calculate_class_access_value (flags); r_cons_printf ("Access Value for %s = 0x%04x\n", flags, result); return true; }
0
[ "CWE-703", "CWE-193" ]
radare2
ced0223c7a1b3b5344af315715cd28fe7c0d9ebc
324,430,692,672,626,950,000,000,000,000,000,000,000
5
Fix unmatched array length in core_java.c (issue #16304) (#16313)
static sctp_xmit_t sctp_packet_will_fit(struct sctp_packet *packet, struct sctp_chunk *chunk, u16 chunk_len) { size_t psize; size_t pmtu; int too_big; sctp_xmit_t retval = SCTP_XMIT_OK; psize = packet->size; pmtu = ((packet->transport->asoc) ? (packet->transport->asoc->pathmtu) : (packet->transpor...
0
[]
linux
196d67593439b03088913227093e374235596e33
233,469,302,843,155,100,000,000,000,000,000,000,000
40
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
static inline int copy_xregs_to_user(struct xregs_state __user *buf) { int err; /* * Clear the xsave header first, so that reserved fields are * initialized to zero. */ err = __clear_user(&buf->header, sizeof(buf->header)); if (unlikely(err)) return -EFAULT; stac(); XSTATE_OP(XSAVE, buf, -1, -1, err); ...
0
[ "CWE-119", "CWE-732", "CWE-787" ]
linux
59c4bd853abcea95eccc167a7d7fd5f1a5f47b98
8,805,944,000,206,112,000,000,000,000,000,000,000
18
x86/fpu: Don't cache access to fpu_fpregs_owner_ctx The state/owner of the FPU is saved to fpu_fpregs_owner_ctx by pointing to the context that is currently loaded. It never changed during the lifetime of a task - it remained stable/constant. After deferred FPU registers loading until return to userland was implement...
ex_help(exarg_T *eap) { char_u *arg; char_u *tag; FILE *helpfd; // file descriptor of help file int n; int i; win_T *wp; int num_matches; char_u **matches; char_u *p; int empty_fnum = 0; int alt_fnum = 0; buf_T *buf; #ifdef FEAT_MULTI_LANG int len; char_u *l...
0
[ "CWE-122", "CWE-787" ]
vim
bd228fd097b41a798f90944b5d1245eddd484142
174,401,773,100,186,340,000,000,000,000,000,000,000
183
patch 8.2.3669: buffer overflow with long help argument Problem: Buffer overflow with long help argument. Solution: Use snprintf().
print_indent_tree(FILE* f, Node* node, int indent) { int i; NodeType type; UChar* p; int add = 3; Indent(f, indent); if (IS_NULL(node)) { fprintf(f, "ERROR: null node!!!\n"); exit (0); } type = NODE_TYPE(node); switch (type) { case NODE_LIST: case NODE_ALT: if (type == NODE_LIST) ...
0
[ "CWE-476" ]
oniguruma
410f5916429e7d2920e1d4867388514f605413b8
106,397,949,779,512,970,000,000,000,000,000,000,000
211
fix #87: Read unknown address in onig_error_code_to_str()
TEST(ArrayOpsTest, Bitcast_ShapeFn) { ShapeInferenceTestOp op("Bitcast"); auto rebuild_node_def = [&op](DataType input_type, DataType output_type) { TF_ASSERT_OK(NodeDefBuilder("test", "Bitcast") .Input("input", 0, input_type) .Attr("type", output_type) ...
0
[ "CWE-125" ]
tensorflow
7cf73a2274732c9d82af51c2bc2cf90d13cd7e6d
51,849,683,536,910,380,000,000,000,000,000,000,000
42
Address QuantizeAndDequantizeV* heap oob. Added additional checks for the 'axis' attribute. PiperOrigin-RevId: 402446942 Change-Id: Id2f6b82e4e740d0550329be02621c46466b5a5b9
void PSOutputDev::updateRise(GfxState *state) { writePSFmt("{0:.6g} Ts\n", state->getRise()); }
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
123,928,780,831,885,340,000,000,000,000,000,000,000
3
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
static oe_host_fd_t _consolefs_gethostfd(oe_fd_t* file_) { oe_host_fd_t ret = -1; file_t* file = _cast_file(file_); if (!file) OE_RAISE_ERRNO(OE_EINVAL); ret = file->host_fd; done: return ret; }
0
[ "CWE-200", "CWE-552" ]
openenclave
bcac8e7acb514429fee9e0b5d0c7a0308fd4d76b
182,259,114,406,604,300,000,000,000,000,000,000,000
13
Merge pull request from GHSA-525h-wxcc-f66m Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
string_timesince(struct timeval * then) { struct timeval diff; timesince(&diff, then); return string_timediff(&diff); }
0
[ "CWE-78" ]
exim
d740d2111f189760593a303124ff6b9b1f83453d
305,767,535,656,526,600,000,000,000,000,000,000,000
7
Fix CVE-2019-10149