func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static void sched_exclude(const char *attendee __attribute__((unused)), void *data, void *rock) { struct sched_data *sched_data = (struct sched_data *) data; struct exclude_rock *erock = (struct exclude_rock *) rock; if (!(sched_data->comp_mask & (1<<erock->ncomp))) { icalproperty *recurid, *exdate; ...
0
[ "CWE-787" ]
cyrus-imapd
a5779db8163b99463e25e7c476f9cbba438b65f3
62,117,056,593,669,440,000,000,000,000,000,000,000
33
HTTP: don't overrun buffer when parsing strings with sscanf()
ptp_unpack_canon_directory ( PTPParams *params, unsigned char *dir, uint32_t cnt, PTPObjectHandles *handles, PTPObjectInfo **oinfos, /* size(handles->n) */ uint32_t **flags /* size(handles->n) */ ) { unsigned int i, j, nrofobs = 0, curob = 0; #define ISOBJECT(ptr) (dtoh32a((ptr)+ptp_canon_dir_storageid) =...
0
[ "CWE-190" ]
libgphoto2
203df81b9d97e820411e1eb94ae08139af73bbd0
227,702,021,482,807,200,000,000,000,000,000,000,000
110
check for an integer overflow in ptp_unpack_OPL
cqcellTreeCreate(void) { l_int32 level, ncells, i; CQCELL ***cqcaa; CQCELL **cqca; /* one array for each octree level */ PROCNAME("cqcellTreeCreate"); /* Make array of accumulation cell arrays from levels 1 to 5 */ if ((cqcaa = (CQCELL ***)LEPT_CALLOC(CqNLevels + 1, sizeof(CQCELL **))) ...
0
[ "CWE-125" ]
leptonica
5ee24b398bb67666f6d173763eaaedd9c36fb1e5
213,342,150,167,459,980,000,000,000,000,000,000,000
29
Fixed issue 22140 in oss-fuzz: Heap-buffer-overflow * color quantized pix must be 8 bpp before extra colors are added.
nma_gconf_connection_new (GConfClient *client, const char *conf_dir) { NMConnection *connection; NMAGConfConnection *gconf_connection = NULL; GError *error; g_return_val_if_fail (GCONF_IS_CLIENT (client), NULL); g_return_val_if_fail (conf_dir != NULL, NULL); /* retrieve GConf data */ connection = nm_gconf_read...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
151,506,769,994,271,690,000,000,000,000,000,000,000
24
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
int local_opendir_nofollow(FsContext *fs_ctx, const char *path) { return local_open_nofollow(fs_ctx, path, O_DIRECTORY | O_RDONLY, 0); }
0
[ "CWE-732" ]
qemu
9c6b899f7a46893ab3b671e341a2234e9c0c060e
319,953,949,564,335,580,000,000,000,000,000,000,000
4
9pfs: local: set the path of the export root to "." The local backend was recently converted to using "at*()" syscalls in order to ensure all accesses happen below the shared directory. This requires that we only pass relative paths, otherwise the dirfd argument to the "at*()" syscalls is ignored and the path is treat...
void __fastcall TSaveWorkspaceDialog::DoValidate() { TSessionData::ValidateName(WorkspaceNameCombo->Text); if (StoredSessions->IsFolder(WorkspaceNameCombo->Text)) { throw Exception(FMTLOAD(FOLDER_NOT_WORKSPACE, (WorkspaceNameCombo->Text))); } if (SavePasswordsCheck->Enabled && SavePasswordsChec...
0
[ "CWE-787" ]
winscp
faa96e8144e6925a380f94a97aa382c9427f688d
89,797,850,995,452,580,000,000,000,000,000,000,000
17
Bug 1943: Prevent loading session settings that can lead to remote code execution from handled URLs https://winscp.net/tracker/1943 (cherry picked from commit ec584f5189a856cd79509f754722a6898045c5e0) Source commit: 0f4be408b3f01132b00682da72d925d6c4ee649b
TEST(ParseExpression, ShouldParseExpressionWithOneArgument) { auto resultExpression = parseExpression(BSON("$and" << BSON_ARRAY(1))); auto andExpression = dynamic_cast<ExpressionAnd*>(resultExpression.get()); ASSERT_TRUE(andExpression); vector<Value> arguments = {Value(Document{{"$const", 1}})}; ASS...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
330,525,396,637,859,600,000,000,000,000,000,000,000
7
SERVER-38070 fix infinite loop in agg expression
static void cmd_get_configuration(IDEState *s, uint8_t *buf) { uint32_t len; uint8_t index = 0; int max_len; /* only feature 0 is supported */ if (buf[2] != 0 || buf[3] != 0) { ide_atapi_cmd_error(s, ILLEGAL_REQUEST, ASC_INV_FIELD_IN_CMD_PACKET); return; ...
0
[ "CWE-125" ]
qemu
813212288970c39b1800f63e83ac6e96588095c6
51,920,090,957,571,430,000,000,000,000,000,000,000
47
ide: atapi: assert that the buffer pointer is in range A case was reported where s->io_buffer_index can be out of range. The report skimped on the details but it seems to be triggered by s->lba == -1 on the READ/READ CD paths (e.g. by sending an ATAPI command with LBA = 0xFFFFFFFF). For now paper over it with asserti...
void gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color, int style) { gdPoint pts[363]; int i, pti; int lx = 0, ly = 0; int fx = 0, fy = 0; if ((s % 360) == (e % 360)) { s = 0; e = 360; } else { if (s > 360) { s = s % 360; } if (e > 360) { e = e % 360; } ...
0
[ "CWE-119" ]
php-src
863d37ea66d5c960db08d6f4a2cbd2518f0f80d1
65,915,064,371,567,610,000,000,000,000,000,000,000
95
Fix #72696: imagefilltoborder stackoverflow on truecolor images We must not allow negative color values be passed to gdImageFillToBorder(), because that can lead to infinite recursion since the recursion termination condition will not necessarily be met.
httpServeObjectFinishHandler(int status, FdEventHandlerPtr event, StreamRequestPtr srequest) { HTTPConnectionPtr connection = srequest->data; HTTPRequestPtr request = connection->request; (void)request; assert(!request->chandler); if(status...
0
[ "CWE-617" ]
polipo
0e2b44af619e46e365971ea52b97457bc0778cd3
189,880,444,567,632,540,000,000,000,000,000,000,000
23
Try to read POST requests to local configuration interface correctly.
static void *MSCRealloc(void* ptr, size_t size) { return(realloc(ptr,size)); }
0
[ "CWE-369" ]
ImageMagick
70aa86f5d5d8aa605a918ed51f7574f433a18482
10,157,295,869,860,310,000,000,000,000,000,000,000
4
possible divide by zero + clear buffers
static void test16(char const* infile, char const* password, char const* outfile, char const* outfile2) { unsigned long buflen = 0L; unsigned char const* buf = 0; FILE* f = 0; qpdf_read(qpdf, infile, password); print_info("/Author"); print_info("/Producer"); print_info("/Crea...
1
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
275,341,859,246,927,630,000,000,000,000,000,000,000
31
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
idn2_lookup_ul (const char * src, char ** lookupname, int flags) { uint8_t *utf8src = NULL; int rc; if (src) { const char *encoding = locale_charset (); utf8src = u8_strconv_from_encoding (src, encoding, iconveh_error); if (!utf8src) { if (errno == ENOMEM) return IDN2_MALLOC; ...
0
[ "CWE-20" ]
libidn2
241e8f486134793cb0f4a5b0e5817a97883401f5
83,256,151,995,269,100,000,000,000,000,000,000,000
26
Perform A-Label roundtrip for lookup functions by default This adds another check to avoid unexpected results. It was a longstanding FIXME. Thanks to Jonathan Birch of Microsoft Corporation, Florian Weimer (GNU glibc) and Nikos Mavrogiannopoulos (GnuTLS) for investigation, discussion and testing.
static int __emulator_pio_in(struct kvm_vcpu *vcpu, int size, unsigned short port, unsigned int count) { WARN_ON(vcpu->arch.pio.count); memset(vcpu->arch.pio_data, 0, size * count); return emulator_pio_in_out(vcpu, size, port, count, true); }
0
[ "CWE-476" ]
linux
55749769fe608fa3f4a075e42e89d237c8e37637
329,125,642,496,393,400,000,000,000,000,000,000,000
7
KVM: x86: Fix wall clock writes in Xen shared_info not to mark page dirty When dirty ring logging is enabled, any dirty logging without an active vCPU context will cause a kernel oops. But we've already declared that the shared_info page doesn't get dirty tracking anyway, since it would be kind of insane to mark it di...
fill3 (unsigned short data[/*n*/], int n, int m) { for (int i = 0; i < n; ++i) data[i] = m; }
0
[ "CWE-190" ]
openexr
51a92d67f53c08230734e74564c807043cbfe41e
248,598,475,081,467,540,000,000,000,000,000,000,000
5
check for valid Huf code lengths (#849) * check for valid Huf code lengths * test non-fast huf decoder in testHuf Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
void restore_tm_state(struct pt_regs *regs) { unsigned long msr_diff; /* * This is the only moment we should clear TIF_RESTORE_TM as * it is here that ckpt_regs.msr and pt_regs.msr become the same * again, anything else could lead to an incorrect ckpt_msr being * saved and therefore incorrect signal contexts...
0
[ "CWE-862" ]
linux
8205d5d98ef7f155de211f5e2eb6ca03d95a5a60
243,872,215,395,458,930,000,000,000,000,000,000,000
28
powerpc/tm: Fix FP/VMX unavailable exceptions inside a transaction When we take an FP unavailable exception in a transaction we have to account for the hardware FP TM checkpointed registers being incorrect. In this case for this process we know the current and checkpointed FP registers must be the same (since FP wasn'...
static void udf_find_vat_block(struct super_block *sb, int p_index, int type1_index, sector_t start_block) { struct udf_sb_info *sbi = UDF_SB(sb); struct udf_part_map *map = &sbi->s_partmaps[p_index]; sector_t vat_block; struct kernel_lb_addr ino; /* * VAT file entry is in the last recorded block. Som...
0
[ "CWE-119", "CWE-787" ]
linux
1df2ae31c724e57be9d7ac00d78db8a5dabdd050
44,539,713,370,723,880,000,000,000,000,000,000,000
21
udf: Fortify loading of sparing table Add sanity checks when loading sparing table from disk to avoid accessing unallocated memory or writing to it. Signed-off-by: Jan Kara <jack@suse.cz>
gs_currentdefaultgrayicc(const gs_gstate * pgs, gs_param_string * pval) { static const char *const rfs = DEFAULT_GRAY_ICC; if (pgs->icc_manager->default_gray == NULL) { pval->data = (const byte *) rfs; pval->persistent = true; } else { pval->data = (const byte *) (pgs->icc_manager->...
0
[]
ghostpdl
6d444c273da5499a4cd72f21cb6d4c9a5256807d
299,188,839,556,357,160,000,000,000,000,000,000,000
13
Bug 697178: Add a file permissions callback For the rare occasions when the graphics library directly opens a file (currently for reading), this allows us to apply any restrictions on file access normally applied in the interpteter.
PHP_FUNCTION(enchant_broker_free) { zval *broker; enchant_broker *pbroker; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &broker) == FAILURE) { RETURN_FALSE; } PHP_ENCHANT_GET_BROKER; zend_list_delete(Z_RESVAL_P(broker)); RETURN_TRUE; }
0
[ "CWE-119" ]
php-src
bdfe457a2c1b47209e32783b3a6447e81baf179a
240,974,258,080,754,860,000,000,000,000,000,000,000
13
Port for for bug #68552
WandExport void DrawSetFontWeight(DrawingWand *wand, const size_t font_weight) { assert(wand != (DrawingWand *) NULL); assert(wand->signature == MagickWandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); if ((wand->filter_off != MagickFalse) |...
0
[ "CWE-476" ]
ImageMagick
6ad5fc3c9b652eec27fc0b1a0817159f8547d5d9
259,848,692,459,287,250,000,000,000,000,000,000,000
14
https://github.com/ImageMagick/ImageMagick/issues/716
static const char *yang_get_default_value(const char *xpath) { const struct lysc_node *snode; const char *value; snode = lys_find_path(ly_native_ctx, NULL, xpath, 0); if (snode == NULL) { flog_err(EC_LIB_YANG_UNKNOWN_DATA_PATH, "%s: unknown data path: %s", __func__, xpath); zlog_backtrace(LOG_ERR); abort...
0
[ "CWE-119", "CWE-787" ]
frr
ac3133450de12ba86c051265fc0f1b12bc57b40c
45,771,933,177,090,140,000,000,000,000,000,000,000
18
isisd: fix #10505 using base64 encoding Using base64 instead of the raw string to encode the binary data. Signed-off-by: whichbug <whichbug@github.com>
static void vga_update_display(void *opaque) { VGACommonState *s = opaque; DisplaySurface *surface = qemu_console_surface(s->con); int full_update, graphic_mode; qemu_flush_coalesced_mmio_buffer(); if (surface_bits_per_pixel(surface) == 0) { /* nothing to do */ } else { full_up...
0
[ "CWE-200" ]
qemu
c1b886c45dc70f247300f549dce9833f3fa2def5
87,745,499,481,833,930,000,000,000,000,000,000,000
36
vbe: rework sanity checks Plug a bunch of holes in the bochs dispi interface parameter checking. Add a function doing verification on all registers. Call that unconditionally on every register write. That way we should catch everything, even changing one register affecting the valid range of another register. Some ...
static GLenum translate_blend_func(uint32_t pipe_blend) { switch(pipe_blend){ case PIPE_BLEND_ADD: return GL_FUNC_ADD; case PIPE_BLEND_SUBTRACT: return GL_FUNC_SUBTRACT; case PIPE_BLEND_REVERSE_SUBTRACT: return GL_FUNC_REVERSE_SUBTRACT; case PIPE_BLEND_MIN: return GL_MIN; case PIPE_BLEND_MAX: return G...
0
[ "CWE-787" ]
virglrenderer
cbc8d8b75be360236cada63784046688aeb6d921
82,485,869,939,526,320,000,000,000,000,000,000,000
13
vrend: check transfer bounds for negative values too and report error Closes #138 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
void smb2cli_conn_set_io_priority(struct smbXcli_conn *conn, uint8_t io_priority) { conn->smb2.io_priority = io_priority; }
0
[ "CWE-20" ]
samba
a819d2b440aafa3138d95ff6e8b824da885a70e9
169,557,035,121,932,190,000,000,000,000,000,000,000
5
CVE-2015-5296: libcli/smb: make sure we require signing when we demand encryption on a session BUG: https://bugzilla.samba.org/show_bug.cgi?id=11536 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
exif_mnote_data_pentax_free (ExifMnoteData *n) { if (!n) return; exif_mnote_data_pentax_clear ((ExifMnoteDataPentax *) n); }
0
[ "CWE-125" ]
libexif
435e21f05001fb03f9f186fa7cbc69454afd00d1
58,276,814,972,732,660,000,000,000,000,000,000,000
6
Fix MakerNote tag size overflow issues at read time. Check for a size overflow while reading tags, which ensures that the size is always consistent for the given components and type of the entry, making checking further down superfluous. This provides an alternate fix for https://sourceforge.net/p/libexif/bugs/125/ C...
void security_sk_clone(const struct sock *sk, struct sock *newsk) { security_ops->sk_clone_security(sk, newsk); }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
151,686,404,782,253,380,000,000,000,000,000,000,000
4
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
CImg<T>& _draw_scanline(const int x0, const int x1, const int y, const tc *const color, const float opacity, const float brightness, const float nopacity, const float copacity, const ulongT whd, const T _sc_maxval) { const int...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
196,741,070,366,758,170,000,000,000,000,000,000,000
65
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
startElementHandler(void *userData, const char *name, const char **atts) { int pos; userdata_t *ud = (userdata_t *) userData; Agraph_t *g = NULL; if (strcmp(name, "graphml") == 0) { /* do nothing */ } else if (strcmp(name, "graph") == 0) { const char *edgeMode = ""; const char *id; Agdesc_t dir...
0
[ "CWE-476" ]
graphviz
839085f8026afd6f6920a0c31ad2a9d880d97932
80,835,813,632,634,370,000,000,000,000,000,000,000
117
attempted fix for null pointer deference on malformed input
static int slim_rx_mux_get(struct snd_kcontrol *kc, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kc); struct wcd9335_codec *wcd = dev_get_drvdata(dapm->dev); ucontrol->value.enumerated.item[0] = wcd->rx_port_value; return 0; }
0
[]
sound
a54988113985ca22e414e132054f234fc8a92604
48,403,412,546,346,080,000,000,000,000,000,000,000
10
wcd9335: fix a incorrect use of kstrndup() In wcd9335_codec_enable_dec(), 'widget_name' is allocated by kstrndup(). However, according to doc: "Note: Use kmemdup_nul() instead if the size is known exactly." So we should use kmemdup_nul() here instead of kstrndup(). Signed-off-by: Gen Zhang <blackgod016574@gmail.com> ...
static void calc_global_nohz(unsigned long ticks) { }
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
186,629,225,477,009,700,000,000,000,000,000,000,000
3
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
TEST_METHOD(11) { // getGeneration() returns the given generation. ServerInstanceDir dir(parentDir + "/passenger-test.1234"); ServerInstanceDir::GenerationPtr generation0 = dir.newGeneration(true, "nobody", nobodyGroup, 0, 0); ServerInstanceDir::GenerationPtr generation1 = dir.newGeneration(true, "nobody", nob...
0
[ "CWE-59", "CWE-61" ]
passenger
5483b3292cc2af1c83033eaaadec20dba4dcfd9b
170,135,670,003,283,320,000,000,000,000,000,000,000
11
If the server instance directory already exists, it is now removed first in order get correct directory permissions. If the directory still exists after removal, Phusion Passenger aborts to avoid writing to a directory with unexpected permissions. Fixes issue #910.
int join_namespace(pid_t pid, char *typestr) { char path[64]; snprintf(path, sizeof(path), "/proc/%d", pid); int fd = open(path, O_PATH|O_CLOEXEC); if (fd < 0) { fprintf(stderr, "Error: cannot open %s: %s\n", path, strerror(errno)); exit(1); } int rv = join_namespace_by_fd(fd, typestr); close(fd); return r...
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
191,948,149,597,459,360,000,000,000,000,000,000,000
13
fixing CVE-2022-31214
CreateForeignServer(CreateForeignServerStmt *stmt) { Relation rel; Datum srvoptions; Datum values[Natts_pg_foreign_server]; bool nulls[Natts_pg_foreign_server]; HeapTuple tuple; Oid srvId; Oid ownerId; AclResult aclresult; ObjectAddress myself; ObjectAddress referenced; ForeignDataWrapper *fdw; rel ...
0
[ "CWE-94" ]
postgres
f52d2fbd8c62f667191b61228acf9d8aa53607b9
231,540,975,047,196,330,000,000,000,000,000,000,000
127
In extensions, don't replace objects not belonging to the extension. Previously, if an extension script did CREATE OR REPLACE and there was an existing object not belonging to the extension, it would overwrite the object and adopt it into the extension. This is problematic, first because the overwrite is probably uni...
void toPacket(DNSPacketWriter& pw) { string tmp((char*)&*d_record.begin(), d_record.size()); vector<string> parts; stringtok(parts, tmp); if(parts.size()!=3 && !(parts.size()==2 && equals(parts[1],"0")) ) throw MOADNSException("Unknown record was stored incorrectly, need 3 fields, got "+lexica...
0
[ "CWE-399" ]
pdns
adb10be102ddd4d2baf7a8adbb5673946fe5e555
233,017,025,743,325,600,000,000,000,000,000,000,000
20
fix forward reference-check in getLabelFromContent()
static void cli_session_setup_guest_done(struct tevent_req *subreq) { struct tevent_req *req = tevent_req_callback_data( subreq, struct tevent_req); struct cli_session_setup_guest_state *state = tevent_req_data( req, struct cli_session_setup_guest_state); struct cli_state *cli = state->cli; uint32_t num_bytes; ...
0
[ "CWE-94" ]
samba
94295b7aa22d2544af5323bca70d3dcb97fd7c64
86,473,728,064,391,400,000,000,000,000,000,000,000
72
CVE-2016-2019: s3:libsmb: add comment regarding smbXcli_session_is_guest() with mandatory signing BUG: https://bugzilla.samba.org/show_bug.cgi?id=11860 Signed-off-by: Stefan Metzmacher <metze@samba.org>
static inline bool io_run_ctx_fallback(struct io_ring_ctx *ctx) { return io_run_task_work_head(&ctx->exit_task_work);
0
[ "CWE-787" ]
linux
d1f82808877bb10d3deee7cf3374a4eb3fb582db
197,458,905,018,770,830,000,000,000,000,000,000,000
4
io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers Read and write operations are capped to MAX_RW_COUNT. Some read ops rely on that limit, and that is not guaranteed by the IORING_OP_PROVIDE_BUFFERS. Truncate those lengths when doing io_add_buffers, so buffer addresses still use the uncapped lengt...
NTSTATUS get_relative_fid_filename(connection_struct *conn, struct smb_request *req, uint16_t root_dir_fid, const struct smb_filename *smb_fname, struct smb_filename **smb_fname_out) { files_struct *dir_fsp; char *parent_fname = NULL; char *new_base_name = NULL; uint32_t ucf_flags = ((re...
0
[ "CWE-835" ]
samba
10c3e3923022485c720f322ca4f0aca5d7501310
49,159,023,210,036,020,000,000,000,000,000,000,000
117
s3: smbd: Don't loop infinitely on bad-symlink resolution. In the FILE_OPEN_IF case we have O_CREAT, but not O_EXCL. Previously we went into a loop trying first ~(O_CREAT|O_EXCL), and if that returned ENOENT try (O_CREAT|O_EXCL). We kept looping indefinately until we got an error, or the file was created or opened. T...
bool link_dhcp6_enabled(Link *link) { if (link->flags & IFF_LOOPBACK) return false; if (!link->network) return false; return link->network->dhcp & ADDRESS_FAMILY_IPV6; }
0
[ "CWE-120" ]
systemd
f5a8c43f39937d97c9ed75e3fe8621945b42b0db
75,514,794,347,877,450,000,000,000,000,000,000,000
9
networkd: IPv6 router discovery - follow IPv6AcceptRouterAdvertisemnt= The previous behavior: When DHCPv6 was enabled, router discover was performed first, and then DHCPv6 was enabled only if the relevant flags were passed in the Router Advertisement message. Moreover, router discovery was performed even if AcceptRout...
bool LEX::sp_variable_declarations_row_finalize(THD *thd, int nvars, Row_definition_list *row, Item *dflt_value_item) { DBUG_ASSERT(row); /* Prepare all row fields. Note, we do it only one time outside of the bel...
0
[ "CWE-703" ]
server
39feab3cd31b5414aa9b428eaba915c251ac34a2
247,287,754,886,127,120,000,000,000,000,000,000,000
33
MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECT IF an INSERT/REPLACE SELECT statement contained an ON expression in the top level select and this expression used a subquery with a column reference that could not be resolved then an attempt to resolve this reference as an outer reference caused...
static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int64_t total_size = 0; MOVAtom a; int i; if (c->atom_depth > 10) { av_log(c->fc, AV_LOG_ERROR, "Atoms too deeply nested\n"); return AVERROR_INVALIDDATA; } c->atom_depth ++; if (atom.size < 0) ...
0
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
206,866,839,676,933,000,000,000,000,000,000,000,000
121
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static int handle_vmread(struct kvm_vcpu *vcpu) { unsigned long field; u64 field_value; unsigned long exit_qualification = vmcs_readl(EXIT_QUALIFICATION); u32 vmx_instruction_info = vmcs_read32(VMX_INSTRUCTION_INFO); gva_t gva = 0; if (!nested_vmx_check_permission(vcpu)) return 1; if (!nested_vmx_check_vmcs1...
0
[ "CWE-388" ]
linux
ef85b67385436ddc1998f45f1d6a210f935b3388
208,207,754,180,947,700,000,000,000,000,000,000,000
41
kvm: nVMX: Allow L1 to intercept software exceptions (#BP and #OF) When L2 exits to L0 due to "exception or NMI", software exceptions (#BP and #OF) for which L1 has requested an intercept should be handled by L1 rather than L0. Previously, only hardware exceptions were forwarded to L1. Signed-off-by: Jim Mattson <jma...
static int get_ngot_entries(struct r_bin_bflt_obj *obj) { ut32 data_size = obj->hdr->data_end - obj->hdr->data_start; int i = 0, n_got = 0; if (data_size > obj->size) { return 0; } for (i = 0, n_got = 0; i < data_size ; i+= 4, n_got++) { ut32 entry, offset = obj->hdr->data_start; if (offset + i + sizeof (ut3...
0
[ "CWE-119", "CWE-787" ]
radare2
72794dc3523bbd5bb370de3c5857cb736c387e18
151,838,759,378,466,150,000,000,000,000,000,000,000
23
Fix #6829 oob write because of using wrong struct
stringprep_strerror (Stringprep_rc rc) { const char *p; bindtextdomain (PACKAGE, LOCALEDIR); switch (rc) { case STRINGPREP_OK: p = _("Success"); break; case STRINGPREP_CONTAINS_UNASSIGNED: p = _("Forbidden unassigned code points in input"); break; case STRINGPREP_CONTAI...
0
[]
libidn
2e97c2796581c27213962c77f5a8571a598f9a2e
14,641,027,031,887,044,000,000,000,000,000,000,000
66
libidn: stringprep_utf8_to_ucs4 now rejects invalid UTF-8. CVE-2015-2059
static void hda_codec_dev_realize(DeviceState *qdev, Error **errp) { HDACodecBus *bus = HDA_BUS(qdev->parent_bus); HDACodecDevice *dev = HDA_CODEC_DEVICE(qdev); HDACodecDeviceClass *cdc = HDA_CODEC_DEVICE_GET_CLASS(dev); if (dev->cad == -1) { dev->cad = bus->next_cad; } if (dev->cad >= ...
0
[ "CWE-787" ]
qemu
79fa99831debc9782087e834382c577215f2f511
109,981,256,350,894,410,000,000,000,000,000,000,000
18
hw/audio/intel-hda: Restrict DMA engine to memories (not MMIO devices) Issue #542 reports a reentrancy problem when the DMA engine accesses the HDA controller I/O registers. Fix by restricting the DMA engine to memories regions (forbidding MMIO devices such the HDA controller). Reported-by: OSS-Fuzz (Issue 28435) Rep...
static inline bool tcp_under_memory_pressure(const struct sock *sk) { if (mem_cgroup_sockets_enabled && sk->sk_memcg && mem_cgroup_under_socket_pressure(sk->sk_memcg)) return true; return tcp_memory_pressure; }
0
[ "CWE-416", "CWE-269" ]
linux
bb1fceca22492109be12640d49f5ea5a544c6bb4
245,912,061,458,498,900,000,000,000,000,000,000,000
8
tcp: fix use after free in tcp_xmit_retransmit_queue() When tcp_sendmsg() allocates a fresh and empty skb, it puts it at the tail of the write queue using tcp_add_write_queue_tail() Then it attempts to copy user data into this fresh skb. If the copy fails, we undo the work and remove the fresh skb. Unfortunately, t...
convert_from_openpgp (ctrl_t ctrl, gcry_sexp_t s_pgp, unsigned char *grip, const char *prompt, const char *cache_nonce, unsigned char **r_key, char **r_passphrase) { return convert_from_openpgp_main (ctrl, s_pgp, grip, prompt, ...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
150,542,416,002,711,290,000,000,000,000,000,000,000
9
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
static int tftp_send_oack(struct tftp_session *spt, const char *keys[], uint32_t values[], int nb, struct tftp_t *recv_tp) { struct mbuf *m; struct tftp_t *tp; int i, n = 0; m = m_get(spt->slirp); if (!m) return -1; tp = tftp_prep_mbuf_data(spt, m); tp->...
1
[]
libslirp
990163cf3ac86b7875559f49602c4d76f46f6f30
184,486,653,507,573,000,000,000,000,000,000,000,000
25
tftp: introduce a header structure Instead of using a composed structure and potentially reading past the incoming buffer, use a different structure for the header. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
inline protobuf::RepeatedField<int32>* MutableTensorProtoData<Eigen::half>( TensorProto* t) { return t->mutable_half_val(); }
0
[ "CWE-345" ]
tensorflow
368af875869a204b4ac552b9ddda59f6a46a56ec
303,909,993,983,982,700,000,000,000,000,000,000,000
4
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...
StatusWith<UserHandle> AuthorizationManagerImpl::_acquireUserSlowPath(CacheGuard& guard, OperationContext* opCtx, const UserName& userName) { int authzVersion = _version; ...
0
[ "CWE-613" ]
mongo
e55d6e2292e5dbe2f97153251d8193d1cc89f5d7
250,606,944,487,358,600,000,000,000,000,000,000,000
65
SERVER-38984 Validate unique User ID on UserCache hit
static void fprintf_cb(const char *buf, void *private_data) { FILE *f = (FILE *)private_data; fprintf(f, "%s", buf); }
0
[]
samba
8eae8d28bce2c3f6a323d3dc48ed10c2e6bb1ba5
223,868,909,707,229,200,000,000,000,000,000,000,000
5
CVE-2013-4476: lib-util: add file_check_permissions() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org>
static int bnep_sock_release(struct socket *sock) { struct sock *sk = sock->sk; BT_DBG("sock %p sk %p", sock, sk); if (!sk) return 0; sock_orphan(sk); sock_put(sk); return 0; }
0
[ "CWE-20", "CWE-787" ]
linux
43629f8f5ea32a998d06d1bb41eefa0e821ff573
81,676,098,297,918,920,000,000,000,000,000,000,000
13
Bluetooth: bnep: fix buffer overflow Struct ca is copied from userspace. It is not checked whether the "device" field is NULL terminated. This potentially leads to BUG() inside of alloc_netdev_mqs() and/or information leak by creating a device with a name made of contents of kernel stack. Signed-off-by: Vasiliy Kul...
_archive_write_disk_free(struct archive *_a) { struct archive_write_disk *a; int ret; if (_a == NULL) return (ARCHIVE_OK); archive_check_magic(_a, ARCHIVE_WRITE_DISK_MAGIC, ARCHIVE_STATE_ANY | ARCHIVE_STATE_FATAL, "archive_write_disk_free"); a = (struct archive_write_disk *)_a; ret = _archive_write_disk_cl...
0
[ "CWE-59", "CWE-269" ]
libarchive
b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
258,041,004,907,419,780,000,000,000,000,000,000,000
40
Do not follow symlinks when processing the fixup list Use lchmod() instead of chmod() and tell the remaining functions that the real file to be modified is a symbolic link. Fixes #1566
static void print_verifier_state(struct bpf_verifier_env *env, const struct bpf_func_state *state) { const struct bpf_reg_state *reg; enum bpf_reg_type t; int i; if (state->frameno) verbose(env, " frame%d:", state->frameno); for (i = 0; i < MAX_BPF_REG; i++) { reg = &state->regs[i]; t = reg->type; if...
0
[ "CWE-119", "CWE-681", "CWE-787" ]
linux
5b9fbeb75b6a98955f628e205ac26689bcb1383e
338,983,108,492,299,170,000,000,000,000,000,000,000
122
bpf: Fix scalar32_min_max_or bounds tracking Simon reported an issue with the current scalar32_min_max_or() implementation. That is, compared to the other 32 bit subreg tracking functions, the code in scalar32_min_max_or() stands out that it's using the 64 bit registers instead of 32 bit ones. This leads to bounds tra...
static void crypto_destroy_instance(struct crypto_alg *alg) { struct crypto_instance *inst = (void *)alg; struct crypto_template *tmpl = inst->tmpl; tmpl->free(inst); crypto_tmpl_put(tmpl); }
0
[ "CWE-284", "CWE-264", "CWE-269" ]
linux
4943ba16bbc2db05115707b3ff7b4874e9e3c560
235,697,028,786,362,060,000,000,000,000,000,000,000
8
crypto: include crypto- module prefix in template This adds the module loading prefix "crypto-" to the template lookup as well. For example, attempting to load 'vfat(blowfish)' via AF_ALG now correctly includes the "crypto-" prefix at every level, correctly rejecting "vfat": net-pf-38 algif-hash crypto-vfat(blowf...
undo_cmdmod(cmdmod_T *cmod) { if (cmod->cmod_verbose_save > 0) { p_verbose = cmod->cmod_verbose_save - 1; cmod->cmod_verbose_save = 0; } #ifdef HAVE_SANDBOX if (cmod->cmod_did_sandbox) { --sandbox; cmod->cmod_did_sandbox = FALSE; } #endif if (cmod->cmod_save_ei != NULL) { // Resto...
0
[ "CWE-122" ]
vim
35a319b77f897744eec1155b736e9372c9c5575f
313,369,349,156,519,400,000,000,000,000,000,000,000
49
patch 8.2.3489: ml_get error after search with range Problem: ml_get error after search with range. Solution: Limit the line number to the buffer line count.
void free_devices(device_t *devices, const unsigned n_devs) { unsigned i; if (!devices) return; for (i = 0; i < n_devs; i++) { free(devices[i].keyHandle); devices[i].keyHandle = NULL; free(devices[i].publicKey); devices[i].publicKey = NULL; } free(devices); devices = NULL; }
0
[ "CWE-200" ]
pam-u2f
18b1914e32b74ff52000f10e97067e841e5fff62
315,989,710,057,487,850,000,000,000,000,000,000,000
17
Do not leak file descriptor when doing exec When opening a custom debug file, the descriptor would stay open when calling exec and leak to the child process. Make sure all files are opened with close-on-exec. This fixes CVE-2019-12210. Thanks to Matthias Gerstner of the SUSE Security Team for reporting the issue.
static bool eq_tun_id_and_vni(u8 *tun_id, u8 *vni) { return !memcmp(vni, &tun_id[5], 3); }
0
[]
net
6c8991f41546c3c472503dff1ea9daaddf9331c2
331,958,279,267,229,100,000,000,000,000,000,000,000
4
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup ipv6_stub uses the ip6_dst_lookup function to allow other modules to perform IPv6 lookups. However, this function skips the XFRM layer entirely. All users of ipv6_stub->ip6_dst_lookup use ip_route_output_flow (via the ip_route_output_key and ip_route_o...
f_glob2regpat(typval_T *argvars, typval_T *rettv) { char_u buf[NUMBUFLEN]; char_u *pat; if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) return; pat = tv_get_string_buf_chk_strict(&argvars[0], buf, in_vim9script()); rettv->v_type = VAR_STRING; rettv->vval.v_string = (pat == NU...
0
[ "CWE-823", "CWE-703" ]
vim
5921aeb5741fc6e84c870d68c7c35b93ad0c9f87
227,582,561,036,426,670,000,000,000,000,000,000,000
13
patch 8.2.4418: crash when using special multi-byte character Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character.
int ip_check_mc_rcu(struct in_device *in_dev, __be32 mc_addr, __be32 src_addr, u8 proto) { struct ip_mc_list *im; struct ip_mc_list __rcu **mc_hash; struct ip_sf_list *psf; int rv = 0; mc_hash = rcu_dereference(in_dev->mc_hash); if (mc_hash) { u32 hash = hash_32((__force u32)mc_addr, MC_HASH_SZ_LOG); for (i...
0
[ "CWE-362" ]
linux
23d2b94043ca8835bd1e67749020e839f396a1c2
143,274,315,451,803,250,000,000,000,000,000,000,000
44
igmp: Add ip_mc_list lock in ip_check_mc_rcu I got below panic when doing fuzz test: Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 4056 Comm: syz-executor.3 Tainted: G B 5.14.0-rc1-00195-gcff5c4254439-dirty #2 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-59-gc9...
struct dce_aux *dce110_aux_engine_create( struct dc_context *ctx, uint32_t inst) { struct aux_engine_dce110 *aux_engine = kzalloc(sizeof(struct aux_engine_dce110), GFP_KERNEL); if (!aux_engine) return NULL; dce110_aux_engine_construct(aux_engine, ctx, inst, SW_AUX_TIMEOUT_PERIOD_MULTIPLIER * AUX_TIME...
0
[ "CWE-400", "CWE-401" ]
linux
104c307147ad379617472dd91a5bcb368d72bd6d
156,605,273,588,139,630,000,000,000,000,000,000,000
16
drm/amd/display: prevent memory leak In dcn*_create_resource_pool the allocated memory should be released if construct pool fails. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
static const char *set_protocols(cmd_parms *cmd, void *dummy, const char *arg) { core_server_config *conf = ap_get_core_module_config(cmd->server->module_config); const char **np; const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); if (err) { r...
0
[ "CWE-416", "CWE-284" ]
httpd
4cc27823899e070268b906ca677ee838d07cf67a
62,483,535,874,899,560,000,000,000,000,000,000,000
17
core: Disallow Methods' registration at run time (.htaccess), they may be used only if registered at init time (httpd.conf). Calling ap_method_register() in children processes is not the right scope since it won't be shared for all requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1807655 13f7...
static GLenum get_xfb_mode(GLenum mode) { switch (mode) { case GL_POINTS: return GL_POINTS; case GL_TRIANGLES: case GL_TRIANGLE_STRIP: case GL_TRIANGLE_FAN: case GL_QUADS: case GL_QUAD_STRIP: case GL_POLYGON: return GL_TRIANGLES; case GL_LINES: case GL_LINE_LOOP: case GL_LIN...
0
[ "CWE-787" ]
virglrenderer
cbc8d8b75be360236cada63784046688aeb6d921
331,790,255,871,570,040,000,000,000,000,000,000,000
21
vrend: check transfer bounds for negative values too and report error Closes #138 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
pk11_get_session(pk11_context_t *ctx, pk11_optype_t optype, bool need_services, bool rw, bool logon, const char *pin, CK_SLOT_ID slot) { pk11_token_t *token = NULL; pk11_sessionlist_t *freelist; pk11_session_t *sp; isc_result_t ret; #ifdef PKCS11CRYPTO isc_result_t service_ret = ISC_R_SUCCESS; #else UNUSED(...
0
[ "CWE-617" ]
bind9
8d807cc21655eaa6e6a08afafeec3682c0f3f2ab
272,684,086,003,360,840,000,000,000,000,000,000,000
120
Fix crash in pk11_numbits() when native-pkcs11 is used When pk11_numbits() is passed a user provided input that contains all zeroes (via crafted DNS message), it would crash with assertion failure. Fix that by properly handling such input.
fr_window_get_password_for_second_archive (FrWindow *window) { g_return_val_if_fail (window != NULL, NULL); return window->priv->second_password; }
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
66,929,735,296,574,960,000,000,000,000,000,000,000
6
libarchive: sanitize filenames before extracting
static void nsc_encode_sse2(NSC_CONTEXT* context, const BYTE* data, UINT32 scanline) { nsc_encode_argb_to_aycocg_sse2(context, data, scanline); if (context->ChromaSubsamplingLevel > 0) { nsc_encode_subsampling_sse2(context); } }
1
[ "CWE-200", "CWE-787" ]
FreeRDP
d1112c279bd1a327e8e4d0b5f371458bf2579659
192,458,832,697,382,730,000,000,000,000,000,000,000
10
Fixed CVE-2018-8788 Thanks to Eyal Itkin from Check Point Software Technologies.
fst_init_card(struct fst_card_info *card) { int i; int err; /* We're working on a number of ports based on the card ID. If the * firmware detects something different later (should never happen) * we'll have to revise it in some way then. */ for (i = 0; i < card->nports; i++) { err = register_...
0
[ "CWE-399" ]
linux
96b340406724d87e4621284ebac5e059d67b2194
201,312,596,885,201,800,000,000,000,000,000,000,000
29
farsync: fix info leak in ioctl The fst_get_iface() code fails to initialize the two padding bytes of struct sync_serial_settings after the ->loopback member. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. ...
TYPED_TEST(MultiProtocolTest, EmptyFrozenStructA) { EXPECT_COMPATIBLE_PROTOCOL( FrozenStructA(), tablebased::FrozenStructA(), TypeParam); }
0
[ "CWE-763" ]
fbthrift
bfda1efa547dce11a38592820916db01b05b9339
63,299,446,579,260,790,000,000,000,000,000,000,000
4
Fix handling of invalid union data in table-based serializer Summary: Fix handling of invalid union data in the table-based serializer. Previously if the input contained duplicate union data, previous active member of the union was overwritten without calling the destructor of the old object, potentially causing a mem...
static int rtw_wx_set_rate(struct net_device *dev, struct iw_request_info *a, union iwreq_data *wrqu, char *extra) { int i; u8 datarates[NumRates]; u32 target_rate = wrqu->bitrate.value; u32 fixed = wrqu->bitrate.fixed; u32 ratevalue = 0; u8 mpdatarate[NumRates] = {11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0...
0
[ "CWE-787" ]
linux
74b6b20df8cfe90ada777d621b54c32e69e27cd7
149,738,375,532,978,070,000,000,000,000,000,000,000
78
staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan() This code has a check to prevent read overflow but it needs another check to prevent writing beyond the end of the ->ssid[] array. Fixes: a2c60d42d97c ("staging: r8188eu: Add files for new driver - part 16") Signed-off-by: Dan Carpenter <dan.carpenter@o...
Http2Stream::Http2Stream( Http2Session* session, int32_t id, nghttp2_headers_category category, int options) : AsyncWrap(session->env(), session->env()->http2stream_constructor_template() ->NewInstance(session->env()->context()) ...
0
[]
node
ce22d6f9178507c7a41b04ac4097b9ea902049e3
320,384,744,783,945,000,000,000,000,000,000,000,000
37
http2: add altsvc support Add support for sending and receiving ALTSVC frames. PR-URL: https://github.com/nodejs/node/pull/17917 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
static int caif_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock *sk = sock->sk; struct caifsock *cf_sk = container_of(sk, struct caifsock, sk); int err, size; struct sk_buff *skb; int sent = 0; long timeo; err = -EOPNOTSUPP; if (unlikely(msg->msg...
0
[ "CWE-20", "CWE-269" ]
linux
f3d3342602f8bcbf37d7c46641cb9bca7618eb1c
144,718,005,192,188,760,000,000,000,000,000,000,000
78
net: rework recvmsg handler msg_name and msg_namelen logic This patch now always passes msg->msg_namelen as 0. recvmsg handlers must set msg_namelen to the proper size <= sizeof(struct sockaddr_storage) to return msg_name to the user. This prevents numerous uninitialized memory leaks we had in the recvmsg handlers an...
int i915_gem_context_getparam_ioctl(struct drm_device *dev, void *data, struct drm_file *file) { struct drm_i915_file_private *file_priv = file->driver_priv; struct drm_i915_gem_context_param *args = data; struct i915_gem_context *ctx; int ret = 0; ctx = i915_gem_context_lookup(file_priv, args->ctx_id); ...
0
[ "CWE-416" ]
linux
7dc40713618c884bf07c030d1ab1f47a9dc1f310
125,331,832,837,857,920,000,000,000,000,000,000,000
57
drm/i915: Introduce a mutex for file_priv->context_idr Define a mutex for the exclusive use of interacting with the per-file context-idr, that was previously guarded by struct_mutex. This allows us to reduce the coverage of struct_mutex, with a view to removing the last bits coordinating GEM context later. (In the sho...
static void free_comp_data(void *data) { struct comp_data *comp_data = (struct comp_data *) data; if (comp_data) { if (comp_data->comp) icalcomponent_free(comp_data->comp); free(comp_data); } }
0
[ "CWE-787" ]
cyrus-imapd
a5779db8163b99463e25e7c476f9cbba438b65f3
326,967,897,045,808,600,000,000,000,000,000,000,000
8
HTTP: don't overrun buffer when parsing strings with sscanf()
static off_t raw_command(char* buf, size_t bufsz, uint8_t cmd, const void* key, size_t keylen, const void* dta, size_t dtalen) { /* all of the storage commands use th...
0
[ "CWE-20" ]
memcached
75cc83685e103bc8ba380a57468c8f04413033f9
271,006,384,776,482,900,000,000,000,000,000,000,000
29
Issue 102: Piping null to the server will crash it
static NTSTATUS smbd_marshall_dir_entry(TALLOC_CTX *ctx, connection_struct *conn, uint16_t flags2, uint32_t info_level, struct ea_list *name_list, bool check_mangled_names, bool requires_resume_key, uint32_t mode, const char *fname, const struct sm...
0
[ "CWE-787" ]
samba
22b4091924977f6437b59627f33a8e6f02b41011
334,426,672,548,307,020,000,000,000,000,000,000,000
697
CVE-2021-44142: smbd: add Netatalk xattr used by vfs_fruit to the list of private Samba xattrs This is an internal xattr that should not be user visible. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14914 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
SSL_write_from_file(SSL * ssl, char *file) { FILE *fd; int c; char buf[1]; fd = fopen(file, "r"); if (fd != NULL) { while ((c = fgetc(fd)) != EOF) { buf[0] = c; SSL_write(ssl, buf, 1); } fclose(fd); } }
0
[ "CWE-119" ]
w3m
ba9d78faeba9024c3e8840579c3b0e959ae2cb0f
247,895,667,623,727,150,000,000,000,000,000,000,000
14
Prevent global-buffer-overflow in parseURL() Bug-Debian: https://github.com/tats/w3m/issues/41
static char *alloc_one_pg_vec_page(unsigned long order) { char *buffer; gfp_t gfp_flags = GFP_KERNEL | __GFP_COMP | __GFP_ZERO | __GFP_NOWARN | __GFP_NORETRY; buffer = (char *) __get_free_pages(gfp_flags, order); if (buffer) return buffer; /* __get_free_pages failed, fall back to vmalloc */ buffer = vzal...
0
[ "CWE-787" ]
linux
acf69c946233259ab4d64f8869d4037a198c7f06
38,795,268,107,247,543,000,000,000,000,000,000,000
24
net/packet: fix overflow in tpacket_rcv Using tp_reserve to calculate netoff can overflow as tp_reserve is unsigned int and netoff is unsigned short. This may lead to macoff receving a smaller value then sizeof(struct virtio_net_hdr), and if po->has_vnet_hdr is set, an out-of-bounds write will occur when calling virt...
static void FVMenuCluster(GWindow gw, struct gmenuitem *UNUSED(mi), GEvent *UNUSED(e)) { FVCluster( (FontViewBase *) GDrawGetUserData(gw)); }
0
[ "CWE-119", "CWE-787" ]
fontforge
626f751752875a0ddd74b9e217b6f4828713573c
65,784,688,230,362,570,000,000,000,000,000,000,000
3
Warn users before discarding their unsaved scripts (#3852) * Warn users before discarding their unsaved scripts This closes #3846.
get_device_events_reply (DBusPendingCall *pending, void *user_data) { DBusMessage *reply = dbus_pending_call_steal_reply (pending); DBusMessageIter iter, iter_array, iter_struct; if (!reply) goto done; if (strncmp (dbus_message_get_signature (reply), "a(s", 3) != 0) { g_warning ("atk-bridge: get...
0
[]
at-spi2-atk
e4f3eee2e137cd34cd427875365f458c65458164
305,070,288,954,550,500,000,000,000,000,000,000,000
33
Use XDG_RUNTIME_DIR to hold sockets, and do not make a world-writable dir If we use XDG_RUNTIME_DIR, then the directory should be owned by the appropriate user, so it should not need to be world-writable. Hopefully this won't break accessibility for administrative apps on some distro. https://bugzilla.gnome.org/show_...
TEST_F(QueryPlannerTest, ContainedOrInAndInNestedElemMatch) { addIndex(BSON("b.d" << 1 << "b.c.f" << 1)); addIndex(BSON("b.e" << 1 << "b.c.f" << 1)); runQuery( fromjson("{$and: [{a: 5}, {b: {$elemMatch: {$and: [" "{c: {$elemMatch: {f: 5}}}, {$or: [{d: 6}, {e: 7}]}]}}}]}")); ass...
0
[ "CWE-834" ]
mongo
94d0e046baa64d1aa1a6af97e2d19bb466cc1ff5
104,470,845,647,978,020,000,000,000,000,000,000,000
19
SERVER-38164 $or pushdown optimization does not correctly handle $not within an $elemMatch
plperl_modify_tuple(HV *hvTD, TriggerData *tdata, HeapTuple otup) { SV **svp; HV *hvNew; HE *he; HeapTuple rtup; int slotsused; int *modattrs; Datum *modvalues; char *modnulls; TupleDesc tupdesc; tupdesc = tdata->tg_relation->rd_att; svp = hv_fetch_string(hvTD, "new"); if (!svp) ...
0
[ "CWE-264" ]
postgres
537cbd35c893e67a63c59bc636c3e888bd228bc7
132,287,904,996,775,290,000,000,000,000,000,000,000
74
Prevent privilege escalation in explicit calls to PL validators. The primary role of PL validators is to be called implicitly during CREATE FUNCTION, but they are also normal functions that a user can call explicitly. Add a permissions check to each validator to ensure that a user cannot use explicit validator calls ...
testVector(const char* in, const char* out) : input_((byte*)in), output_((byte*)out), inLen_((word32)strlen(in)), outLen_((word32)strlen(out)) {}
0
[]
mysql-server
5c6169fb309981b564a17bee31b367a18866d674
309,112,049,945,880,300,000,000,000,000,000,000,000
3
Bug #24740291: YASSL UPDATE TO 2.4.2
UnpicklerMemoProxy_traverse(UnpicklerMemoProxyObject *self, visitproc visit, void *arg) { Py_VISIT(self->unpickler); return 0; }
0
[ "CWE-190", "CWE-369" ]
cpython
a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd
45,157,324,359,581,680,000,000,000,000,000,000,000
6
closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261)
fmgr_info_other_lang(Oid functionId, FmgrInfo *finfo, HeapTuple procedureTuple) { Form_pg_proc procedureStruct = (Form_pg_proc) GETSTRUCT(procedureTuple); Oid language = procedureStruct->prolang; HeapTuple languageTuple; Form_pg_language languageStruct; FmgrInfo plfinfo; languageTuple = SearchSysCache1(LANGOID...
0
[ "CWE-264" ]
postgres
537cbd35c893e67a63c59bc636c3e888bd228bc7
318,680,006,687,318,370,000,000,000,000,000,000,000
32
Prevent privilege escalation in explicit calls to PL validators. The primary role of PL validators is to be called implicitly during CREATE FUNCTION, but they are also normal functions that a user can call explicitly. Add a permissions check to each validator to ensure that a user cannot use explicit validator calls ...
mem_stats( sockaddr_u *srcadr, endpt *inter, struct req_pkt *inpkt ) { register struct info_mem_stats *ms; register int i; ms = (struct info_mem_stats *)prepare_pkt(srcadr, inter, inpkt, sizeof(struct info_mem_stats)); ms->timereset = htonl((u_int32)(current_time - peer_timereset)); ms->totalpeermem ...
1
[ "CWE-476" ]
ntp
8a0c765f3c47633fa262356b0818788d1cf249b1
96,527,714,407,466,640,000,000,000,000,000,000,000
26
[Bug 2939] reslist NULL pointer dereference [Bug 2940] Stack exhaustion in recursive traversal of restriction list -- these two where fixed together --
static void conn_close(conn *c) { assert(c != NULL); /* delete the event, the socket and the conn */ event_del(&c->event); if (settings.verbose > 1) fprintf(stderr, "<%d connection closed.\n", c->sfd); conn_cleanup(c); MEMCACHED_CONN_RELEASE(c->sfd); conn_set_state(c, conn_closed...
0
[ "CWE-190" ]
memcached
bd578fc34b96abe0f8d99c1409814a09f51ee71c
146,386,055,848,539,630,000,000,000,000,000,000,000
25
CVE reported by cisco talos
static uint16_t nvme_read(NvmeCtrl *n, NvmeRequest *req) { NvmeRwCmd *rw = (NvmeRwCmd *)&req->cmd; NvmeNamespace *ns = req->ns; uint64_t slba = le64_to_cpu(rw->slba); uint32_t nlb = (uint32_t)le16_to_cpu(rw->nlb) + 1; uint8_t prinfo = NVME_RW_PRINFO(le16_to_cpu(rw->control)); uint64_t data_size ...
0
[]
qemu
736b01642d85be832385063f278fe7cd4ffb5221
117,612,639,307,724,450,000,000,000,000,000,000,000
72
hw/nvme: fix CVE-2021-3929 This fixes CVE-2021-3929 "locally" by denying DMA to the iomem of the device itself. This still allows DMA to MMIO regions of other devices (e.g. doing P2P DMA to the controller memory buffer of another NVMe device). Fixes: CVE-2021-3929 Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com> Review...
static int get_data_block(struct inode *inode, sector_t iblock, struct buffer_head *bh_result, int create, int flag, pgoff_t *next_pgofs) { return __get_data_block(inode, iblock, bh_result, create, flag, next_pgofs); }
0
[ "CWE-190" ]
linux
b86e33075ed1909d8002745b56ecf73b833db143
228,990,055,651,793,900,000,000,000,000,000,000,000
7
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; ... ...
static void mpage_release_unused_pages(struct mpage_da_data *mpd, bool invalidate) { int nr_pages, i; pgoff_t index, end; struct pagevec pvec; struct inode *inode = mpd->inode; struct address_space *mapping = inode->i_mapping; /* This is necessary when next_page == 0. */ if (mpd->first_page >= mpd->n...
0
[ "CWE-703" ]
linux
ce9f24cccdc019229b70a5c15e2b09ad9c0ab5d1
117,068,650,976,070,670,000,000,000,000,000,000,000
44
ext4: check journal inode extents more carefully Currently, system zones just track ranges of block, that are "important" fs metadata (bitmaps, group descriptors, journal blocks, etc.). This however complicates how extent tree (or indirect blocks) can be checked for inodes that actually track such metadata - currently...
~VDir() {};
0
[]
perl5
52236464559c6e410a4587d3c6da9639e75f3ec1
121,062,858,104,863,710,000,000,000,000,000,000,000
1
avoid invalid memory access in MapPath[AW] This issue was assigned CVE-2015-8608. [perl #126755]
fr_archive_progress_cb (FrArchive *archive, double fraction, FrWindow *window) { window->priv->progress_pulse = (fraction < 0.0); if (! window->priv->progress_pulse) { fraction = CLAMP (fraction, 0.0, 1.0); if (window->priv->progress_dialog != NULL) gtk_progress_bar_set_fraction (GTK_P...
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
337,901,840,887,251,000,000,000,000,000,000,000,000
58
libarchive: sanitize filenames before extracting
check_utf32 (const guint8 * data, gint len, gint endianness) { if (len & 3) return FALSE; while (len > 3) { guint32 v; if (endianness == G_BIG_ENDIAN) v = (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3]; else v = (data[3] << 24) | (data[2] << 16) | (data[1] << 8) | data[0]; ...
0
[ "CWE-125" ]
gst-plugins-base
2fdccfd64fc609e44e9c4b8eed5bfdc0ab9c9095
92,303,578,189,525,700,000,000,000,000,000,000,000
17
typefind: bounds check windows ico detection Fixes out of bounds read https://bugzilla.gnome.org/show_bug.cgi?id=774902
static int ZEND_FASTCALL ZEND_ASSIGN_DIM_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_op *op_data = opline+1; zend_free_op free_op1; zval **object_ptr = _get_zval_ptr_ptr_var(&opline->op1, EX(Ts), &free_op1 TSRMLS_CC); if (IS_VAR == IS_VAR && !object_ptr) { zend_error_nor...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
267,262,647,970,277,650,000,000,000,000,000,000,000
61
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
static int select_size(const struct sock *sk, bool sg, bool first_skb) { const struct tcp_sock *tp = tcp_sk(sk); int tmp = tp->mss_cache; if (sg) { if (sk_can_gso(sk)) { tmp = linear_payload_sz(first_skb); } else { int pgbreak = SKB_MAX_HEAD(MAX_TCP_HEADER); if (tmp >= pgbreak && tmp <= pgbreak...
0
[ "CWE-399", "CWE-835" ]
linux
ccf7abb93af09ad0868ae9033d1ca8108bdaec82
77,036,155,008,432,390,000,000,000,000,000,000,000
19
tcp: avoid infinite loop in tcp_splice_read() Splicing from TCP socket is vulnerable when a packet with URG flag is received and stored into receive queue. __tcp_splice_read() returns 0, and sk_wait_data() immediately returns since there is the problematic skb in queue. This is a nice way to burn cpu (aka infinite l...
static MagickBooleanType WriteBMPImage(const ImageInfo *image_info,Image *image) { BMPInfo bmp_info; BMPSubtype bmp_subtype; const char *option; const StringInfo *profile; MagickBooleanType have_color_info, status; MemoryInfo *pixel_info; MagickOffsetType scene; re...
1
[ "CWE-401" ]
ImageMagick6
dfa1e752bce7b6994765897fb6606d6069345442
244,251,506,234,643,270,000,000,000,000,000,000,000
768
https://github.com/ImageMagick/ImageMagick/issues/1453
static int index_apply_to_all( git_index *index, int action, const git_strarray *paths, git_index_matched_path_cb cb, void *payload) { int error = 0; size_t i; git_pathspec ps; const char *match; git_buf path = GIT_BUF_INIT; assert(index); if ((error = git_pathspec__init(&ps, paths)) < 0) return error; ...
0
[ "CWE-415", "CWE-190" ]
libgit2
3db1af1f370295ad5355b8f64b865a2a357bcac0
148,627,041,533,617,750,000,000,000,000,000,000,000
74
index: error out on unreasonable prefix-compressed path lengths When computing the complete path length from the encoded prefix-compressed path, we end up just allocating the complete path without ever checking what the encoded path length actually is. This can easily lead to a denial of service by just encoding an un...
int main(argc, argv) int argc; char *argv[]; { krb5_data pname_data, tkt_data; int sock = 0; socklen_t l; int retval; struct sockaddr_in l_inaddr, f_inaddr; /* local, foreign address */ krb5_creds creds, *new_creds; krb5_ccache cc; krb5_data msgtext, msg; krb5_context ...
1
[ "CWE-703" ]
krb5
102bb6ebf20f9174130c85c3b052ae104e5073ec
271,607,189,163,823,170,000,000,000,000,000,000,000
204
Fix krb5_read_message handling [CVE-2014-5355] In recvauth_common, do not use strcmp against the data fields of krb5_data objects populated by krb5_read_message(), as there is no guarantee that they are C strings. Instead, create an expected krb5_data value and use data_eq(). In the sample user-to-user server applic...
const char* FLTGetDuring(FilterEncodingNode *psFilterNode, const char** ppszTimeField) { const char *pszReturn = NULL; if (!psFilterNode || !ppszTimeField) return NULL; if (psFilterNode->pszValue && strcasecmp(psFilterNode->pszValue, "During") == 0) { *ppszTimeField = psFilterNode->psLeftNode->pszValue;...
0
[ "CWE-200", "CWE-119" ]
mapserver
e52a436c0e1c5e9f7ef13428dba83194a800f4df
260,007,467,659,424,340,000,000,000,000,000,000,000
20
security fix (patch by EvenR)
cmp_item_row::~cmp_item_row() { DBUG_ENTER("~cmp_item_row"); DBUG_PRINT("enter",("this: %p", this)); if (comparators) { for (uint i= 0; i < n; i++) { if (comparators[i]) delete comparators[i]; } } DBUG_VOID_RETURN; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
213,308,399,204,433,460,000,000,000,000,000,000,000
14
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data, int offset, int len) { struct kvm_memory_slot *slot = gfn_to_memslot(kvm, gfn); return __kvm_write_guest_page(kvm, slot, gfn, data, offset, len); }
0
[ "CWE-119" ]
linux
f8be156be163a052a067306417cd0ff679068c97
34,938,520,675,658,136,000,000,000,000,000,000,000
7
KVM: do not allow mapping valid but non-reference-counted pages It's possible to create a region which maps valid but non-refcounted pages (e.g., tail pages of non-compound higher order allocations). These host pages can then be returned by gfn_to_page, gfn_to_pfn, etc., family of APIs, which take a reference to the p...
static int irda_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) { struct sock *sk = sock->sk; struct irda_sock *self = irda_sk(sk); struct irda_device_list list; struct irda_device_info *discoveries; struct irda_ias_set * ias_opt; /* IAS get/query params */ s...
0
[]
net
79462ad02e861803b3840cc782248c7359451cd9
2,532,265,685,229,428,000,000,000,000,000,000,000
365
net: add validation for the socket syscall protocol argument 郭永刚 reported that one could simply crash the kernel as root by using a simple program: int socket_fd; struct sockaddr_in addr; addr.sin_port = 0; addr.sin_addr.s_addr = INADDR_ANY; addr.sin_family = 10; socket_fd = socket(10,3,0x40000000); connect(s...