idx
int64
project
string
commit_id
string
project_url
string
commit_url
string
commit_message
string
target
int64
func
string
func_hash
float64
file_name
string
file_hash
float64
cwe
list
cve
string
cve_desc
string
nvd_url
string
507,356
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
void fdctrl_reset(FDCtrl *fdctrl, int do_irq) { int i; FLOPPY_DPRINTF("reset controller\n"); fdctrl_reset_irq(fdctrl); /* Initialise controller */ fdctrl->sra = 0; fdctrl->srb = 0xc0; if (!fdctrl->drives[1].blk) { fdctrl->sra |= FD_SRA_nDRV2; } fdctrl->cur_drv = 0; fdctr...
159,882,069,826,686,370,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,357
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
void fdctrl_write(void *opaque, uint32_t reg, uint32_t value) { FDCtrl *fdctrl = opaque; reg &= 7; trace_fdc_ioport_write(reg, value); switch (reg) { case FD_REG_DOR: fdctrl_write_dor(fdctrl, value); break; case FD_REG_TDR: fdctrl_write_tape(fdctrl, value); break...
291,563,512,908,120,000,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,358
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_to_command_phase(FDCtrl *fdctrl) { fdctrl->phase = FD_PHASE_COMMAND; fdctrl->data_dir = FD_DIR_WRITE; fdctrl->data_pos = 0; fdctrl->data_len = 1; /* Accept command byte, adjust for params later */ fdctrl->msr &= ~(FD_MSR_CMDBUSY | FD_MSR_DIO); fdctrl->msr |= FD_MSR_RQM; }
292,172,401,852,780,930,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,359
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fd_revalidate(FDrive *drv) { int rc; FLOPPY_DPRINTF("revalidate\n"); if (drv->blk != NULL) { drv->ro = !blk_is_writable(drv->blk); if (!blk_is_inserted(drv->blk)) { FLOPPY_DPRINTF("No disk in drive\n"); drv->disk = FLOPPY_DRIVE_TYPE_NONE; fd_e...
90,055,756,778,693,720,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,360
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_relative_seek_in(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); if (fdctrl->fifo[2] + cur_drv->track >= cur_drv->max_track) { fd_seek(cur_drv, cur_drv->head, cur_drv->max_track - 1...
337,717,670,174,434,000,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,361
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
uint32_t fdctrl_read(void *opaque, uint32_t reg) { FDCtrl *fdctrl = opaque; uint32_t retval; reg &= 7; switch (reg) { case FD_REG_SRA: retval = fdctrl_read_statusA(fdctrl); break; case FD_REG_SRB: retval = fdctrl_read_statusB(fdctrl); break; case FD_REG_DOR: ...
104,958,834,990,092,190,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,362
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_configure(FDCtrl *fdctrl, int direction) { fdctrl->config = fdctrl->fifo[2]; fdctrl->precomp_trk = fdctrl->fifo[3]; /* No result back */ fdctrl_to_command_phase(fdctrl); }
244,518,672,425,903,760,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,363
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_lock(FDCtrl *fdctrl, int direction) { fdctrl->lock = (fdctrl->fifo[0] & 0x80) ? 1 : 0; fdctrl->fifo[0] = fdctrl->lock << 4; fdctrl_to_result_phase(fdctrl, 1); }
286,973,380,068,313,000,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,364
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) { FDrive *cur_drv; const FDCtrlCommand *cmd; uint32_t pos; /* Reset mode */ if (!(fdctrl->dor & FD_DOR_nRESET)) { FLOPPY_DPRINTF("Floppy controller in RESET state !\n"); return; } if (!(fdctrl->msr & FD_MSR_RQM) |...
196,095,259,474,714,770,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,365
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdc_register_types(void) { type_register_static(&floppy_bus_info); type_register_static(&floppy_drive_info); }
175,037,454,176,095,760,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,366
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_sense_drive_status(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); cur_drv->head = (fdctrl->fifo[1] >> 2) & 1; /* 1 Byte status back */ fdctrl->fifo[0] = (cur_drv->ro << 6) | ...
312,002,058,549,579,170,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,367
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void floppy_bus_create(FDCtrl *fdc, FloppyBus *bus, DeviceState *dev) { qbus_init(bus, sizeof(FloppyBus), TYPE_FLOPPY_BUS, dev, NULL); bus->fdc = fdc; }
192,501,080,209,685,220,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,368
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void floppy_drive_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->realize = floppy_drive_realize; set_bit(DEVICE_CATEGORY_STORAGE, k->categories); k->bus_type = TYPE_FLOPPY_BUS; device_class_set_props(k, floppy_drive_properties); k->desc = "virtual fl...
245,059,480,338,990,060,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,369
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_version(FDCtrl *fdctrl, int direction) { /* Controller's version */ fdctrl->fifo[0] = fdctrl->version; fdctrl_to_result_phase(fdctrl, 1); }
114,906,894,183,928,930,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,370
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_perpendicular_mode(FDCtrl *fdctrl, int direction) { FDrive *cur_drv = get_cur_drv(fdctrl); if (fdctrl->fifo[1] & 0x80) cur_drv->perpendicular = fdctrl->fifo[1] & 0x7; /* No result back */ fdctrl_to_command_phase(fdctrl); }
190,279,894,273,507,770,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,371
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_stop_transfer(FDCtrl *fdctrl, uint8_t status0, uint8_t status1, uint8_t status2) { FDrive *cur_drv; cur_drv = get_cur_drv(fdctrl); fdctrl->status0 &= ~(FD_SR0_DS0 | FD_SR0_DS1 | FD_SR0_HEAD); fdctrl->status0 |= GET_CUR_DRV(fdctrl); if (cur_drv->he...
11,940,225,784,734,540,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,372
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_unimplemented(FDCtrl *fdctrl, int direction) { qemu_log_mask(LOG_UNIMP, "fdc: unimplemented command 0x%02x\n", fdctrl->fifo[0]); fdctrl->fifo[0] = FD_SR0_INVCMD; fdctrl_to_result_phase(fdctrl, 1); }
174,115,768,829,734,130,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,373
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
void fdctrl_init_drives(FloppyBus *bus, DriveInfo **fds) { DeviceState *dev; int i; for (i = 0; i < MAX_FD; i++) { if (fds[i]) { dev = qdev_new("floppy"); qdev_prop_set_uint32(dev, "unit", i); qdev_prop_set_enum(dev, "drive-type", FLOPPY_DRIVE_TYPE_AUTO); ...
263,192,395,559,518,700,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,374
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_result_timer(void *opaque) { FDCtrl *fdctrl = opaque; FDrive *cur_drv = get_cur_drv(fdctrl); /* Pretend we are spinning. * This is needed for Coherent, which uses READ ID to check for * sector interleaving. */ if (cur_drv->last_sect != 0) { cur_drv->sect = (cur...
300,881,099,825,188,160,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,375
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) { FDrive *cur_drv = get_cur_drv(fdctrl); uint32_t pos; pos = fdctrl->data_pos - 1; pos %= FD_SECTOR_LEN; if (fdctrl->fifo[pos] & 0x80) { /* Command parameters done */ if (fdctrl->fifo[pos] & 0x40) {...
312,043,961,502,058,370,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,376
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static FDrive *get_drv(FDCtrl *fdctrl, int unit) { switch (unit) { case 0: return drv0(fdctrl); case 1: return drv1(fdctrl); #if MAX_FD == 4 case 2: return drv2(fdctrl); case 3: return drv3(fdctrl); #endif default: return NULL; } }
164,808,501,216,173,740,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,377
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fd_empty_seek_hack(FDrive *drv) { drv->last_sect = 0xFF; drv->max_track = 0xFF; }
306,206,308,134,596,740,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,378
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_option(FDCtrl *fdctrl, int direction) { /* No result back */ fdctrl_to_command_phase(fdctrl); }
266,972,699,865,822,000,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,379
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_readid(FDCtrl *fdctrl, int direction) { FDrive *cur_drv = get_cur_drv(fdctrl); cur_drv->head = (fdctrl->fifo[1] >> 2) & 1; timer_mod(fdctrl->result_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (NANOSECONDS_PER_SECOND / 50)); }
118,428,083,013,825,200,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,380
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static int fdc_post_load(void *opaque, int version_id) { FDCtrl *s = opaque; SET_CUR_DRV(s, s->dor_vmstate & FD_DOR_SELMASK); s->dor = s->dor_vmstate & ~FD_DOR_SELMASK; if (s->phase == FD_PHASE_RECONSTRUCT) { s->phase = reconstruct_phase(s); } return 0; }
226,363,523,561,858,300,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,381
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
int fdctrl_transfer_handler(void *opaque, int nchan, int dma_pos, int dma_len) { FDCtrl *fdctrl; FDrive *cur_drv; int len, start_pos, rel_pos; uint8_t status0 = 0x00, status1 = 0x00, status2 = 0x00; IsaDmaClass *k; fdctrl = opaque; if (fdctrl->msr & FD_MSR_RQM) { FLOPPY_DPRINTF("Not...
213,638,561,226,641,150,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,382
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static int pick_geometry(FDrive *drv) { BlockBackend *blk = drv->blk; const FDFormat *parse; uint64_t nb_sectors, size; int i; int match, size_match, type_match; bool magic = drv->drive == FLOPPY_DRIVE_TYPE_AUTO; /* We can only pick a geometry if we have a diskette. */ if (!drv->blk || ...
256,710,451,299,465,600,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,383
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_format_sector(FDCtrl *fdctrl) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[6]; kh = fdctrl->fifo[7]; ks = fdctrl->fifo[8]; FLOPPY_DPRINTF("format sector at %d %d %02x %02...
257,623,831,546,441,000,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,384
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void pick_drive_type(FDrive *drv) { if (drv->drive != FLOPPY_DRIVE_TYPE_AUTO) { return; } if (pick_geometry(drv) == 0) { drv->drive = drv->disk; } else { drv->drive = get_fallback_drive_type(drv); } g_assert(drv->drive != FLOPPY_DRIVE_TYPE_AUTO); }
19,100,623,190,320,292,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,385
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static bool fdc_phase_needed(void *opaque) { FDCtrl *fdctrl = opaque; return reconstruct_phase(fdctrl) != fdctrl->phase; }
157,580,674,610,167,800,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,386
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static int fdc_pre_save(void *opaque) { FDCtrl *s = opaque; s->dor_vmstate = s->dor | GET_CUR_DRV(s); return 0; }
178,061,574,542,890,640,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,387
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_relative_seek_out(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); if (fdctrl->fifo[2] > cur_drv->track) { fd_seek(cur_drv, cur_drv->head, 0, cur_drv->sect, 1); } else { ...
196,922,422,788,805,700,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,388
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static int fdc_pre_load(void *opaque) { FDCtrl *s = opaque; s->phase = FD_PHASE_RECONSTRUCT; return 0; }
297,136,182,192,345,680,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,389
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static FloppyDriveType get_fallback_drive_type(FDrive *drv) { return drv->fdctrl->fallback; }
37,097,453,763,809,007,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,390
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fd_change_cb(void *opaque, bool load, Error **errp) { FDrive *drive = opaque; if (!load) { blk_set_perm(drive->blk, 0, BLK_PERM_ALL, &error_abort); } else { if (!blkconf_apply_backend_options(drive->conf, !blk_supports_write_perm(drive-...
113,207,084,138,292,240,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,391
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static FDrive *get_cur_drv(FDCtrl *fdctrl) { FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); if (!cur_drv->blk) { /* * Kludge: empty drive line selected. Create an anonymous * BlockBackend to avoid NULL deref with various BlockBackend * API calls within this model (CVE-20...
68,823,001,431,956,930,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,392
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static FDriveSize drive_size(FloppyDriveType drive) { switch (drive) { case FLOPPY_DRIVE_TYPE_120: return FDRIVE_SIZE_525; case FLOPPY_DRIVE_TYPE_144: case FLOPPY_DRIVE_TYPE_288: return FDRIVE_SIZE_350; default: return FDRIVE_SIZE_UNKNOWN; } }
303,602,604,304,086,050,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,393
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_restore(FDCtrl *fdctrl, int direction) { FDrive *cur_drv = get_cur_drv(fdctrl); /* Drives position */ drv0(fdctrl)->track = fdctrl->fifo[3]; drv1(fdctrl)->track = fdctrl->fifo[4]; #if MAX_FD == 4 drv2(fdctrl)->track = fdctrl->fifo[5]; drv3(fdctrl)->track = fdctrl->fifo...
320,769,929,719,322,980,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,394
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction) { FDrive *cur_drv; uint8_t kh, kt, ks; SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK); cur_drv = get_cur_drv(fdctrl); kt = fdctrl->fifo[2]; kh = fdctrl->fifo[3]; ks = fdctrl->fifo[4]; FLOPPY_DPRINTF("Start transfer ...
145,576,340,832,680,440,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,395
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fd_init(FDrive *drv) { /* Drive */ drv->perpendicular = 0; /* Disk */ drv->disk = FLOPPY_DRIVE_TYPE_NONE; drv->last_sect = 0; drv->max_track = 0; drv->ro = true; drv->media_changed = 1; }
105,163,509,451,738,520,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,396
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl, Error **errp) { int i, j; FDrive *drive; static int command_tables_inited = 0; if (fdctrl->fallback == FLOPPY_DRIVE_TYPE_AUTO) { error_setg(errp, "Cannot choose a fallback FDrive type of 'auto'"); return; } /* Fill 'c...
176,750,036,384,377,470,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,397
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static uint32_t fdctrl_read_data(FDCtrl *fdctrl) { FDrive *cur_drv; uint32_t retval = 0; uint32_t pos; cur_drv = get_cur_drv(fdctrl); fdctrl->dsr &= ~FD_DSR_PWRDOWN; if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) { FLOPPY_DPRINTF("error: controller not ready for reading...
17,237,738,979,358,923,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,398
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static void fdctrl_handle_save(FDCtrl *fdctrl, int direction) { FDrive *cur_drv = get_cur_drv(fdctrl); fdctrl->fifo[0] = 0; fdctrl->fifo[1] = 0; /* Drives position */ fdctrl->fifo[2] = drv0(fdctrl)->track; fdctrl->fifo[3] = drv1(fdctrl)->track; #if MAX_FD == 4 fdctrl->fifo[4] = drv2(fdctrl)...
3,184,085,998,219,335,300,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,399
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/defac5e2fbddf8423a354ff0454283a2115e1367
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
0
static BlockBackend *blk_create_empty_drive(void) { return blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); }
80,125,881,455,703,280,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,400
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_verify(void) { uint8_t ret; ret = send_read_command(CMD_VERIFY); g_assert(ret == 0); }
142,154,728,604,939,640,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,401
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_read_without_media(void) { uint8_t ret; ret = send_read_command(CMD_READ); g_assert(ret == 0); }
77,062,314,774,027,530,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,402
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_read_no_dma_19(void) { uint8_t ret; outb(FLOPPY_BASE + reg_dor, inb(FLOPPY_BASE + reg_dor) & ~0x08); send_seek(0); ret = send_read_no_dma_command(19, 0x20); g_assert(ret == 0); }
186,409,731,277,219,100,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,403
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static bool qtest_check_clang_sanitizer(void) { #ifdef QEMU_SANITIZE_ADDRESS return true; #else g_test_skip("QEMU not configured using --enable-sanitizers"); return false; #endif }
314,301,283,425,907,500,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,404
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
int main(int argc, char **argv) { int fd; int ret; /* Create a temporary raw image */ fd = mkstemp(test_image); g_assert(fd >= 0); ret = ftruncate(fd, TEST_IMAGE_SIZE); g_assert(ret == 0); close(fd); /* Run the tests */ g_test_init(&argc, &argv, NULL); qtest_start("-machin...
33,457,069,398,973,624,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,405
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void send_seek(int cyl) { int drive = 0; int head = 0; floppy_send(CMD_SEEK); floppy_send(head << 2 | drive); g_assert(!get_irq(FLOPPY_IRQ)); floppy_send(cyl); ack_irq(NULL); }
175,854,801,178,263,170,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,406
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static uint8_t send_read_command(uint8_t cmd) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl = 0; uint8_t sect_addr = 1; uint8_t sect_size = 2; uint8_t eot = 1; uint8_t gap = 0x1b; uint8_t gpl = 0xff; uint8_t msr = 0; uint8_t st0; uint8_t ret = 0; floppy_send(cmd);...
232,043,421,457,909,940,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,407
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_read_no_dma_18(void) { uint8_t ret; outb(FLOPPY_BASE + reg_dor, inb(FLOPPY_BASE + reg_dor) & ~0x08); send_seek(0); ret = send_read_no_dma_command(18, 0x04); g_assert(ret == 0); }
244,630,409,244,682,570,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,408
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void fuzz_registers(void) { unsigned int i; for (i = 0; i < 1000; i++) { uint8_t reg, val; reg = (uint8_t)g_test_rand_int_range(0, 8); val = (uint8_t)g_test_rand_int_range(0, 256); outb(FLOPPY_BASE + reg, val); inb(FLOPPY_BASE + reg); } }
190,451,852,380,508,200,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,409
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_sense_interrupt(void) { int drive = 0; int head = 0; int cyl = 0; int ret = 0; floppy_send(CMD_SENSE_INT); ret = floppy_recv(); g_assert(ret == 0x80); floppy_send(CMD_SEEK); floppy_send(head << 2 | drive); g_assert(!get_irq(FLOPPY_IRQ)); floppy_send(cyl); ...
213,595,682,483,119,200,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,410
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void floppy_send(uint8_t byte) { uint8_t msr; msr = inb(FLOPPY_BASE + reg_msr); assert_bit_set(msr, RQM); assert_bit_clear(msr, DIO); outb(FLOPPY_BASE + reg_fifo, byte); }
54,401,320,758,996,145,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,411
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_media_insert(void) { uint8_t dir; /* Insert media in drive. DSKCHK should not be reset until a step pulse * is sent. */ qmp_discard_response("{'execute':'blockdev-change-medium', 'arguments':{" " 'id':'floppy0', 'filename': %s, 'format': 'raw' }}", ...
187,023,426,161,816,420,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,412
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_media_change(void) { uint8_t dir; test_media_insert(); /* Eject the floppy and check that DSKCHG is set. Reading it out doesn't * reset the bit. */ qmp_discard_response("{'execute':'eject', 'arguments':{" " 'id':'floppy0' }}"); dir = inb(FLOPPY_BASE ...
250,654,503,440,661,250,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,413
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_cve_2021_3507(void) { QTestState *s; s = qtest_initf("-nographic -m 32M -nodefaults " "-drive file=%s,format=raw,if=floppy,snapshot=on", test_image); qtest_outl(s, 0x9, 0x0a0206); qtest_outw(s, 0x3f4, 0x1600); qtest_outw(s, 0x3f4, 0x0000); ...
112,484,487,333,969,440,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,414
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static uint8_t send_read_no_dma_command(int nb_sect, uint8_t expected_st0) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl = 0; uint8_t sect_addr = 1; uint8_t sect_size = 2; uint8_t eot = nb_sect; uint8_t gap = 0x1b; uint8_t gpl = 0xff; uint8_t msr = 0; uint8_t st0; uint...
13,469,825,411,588,448,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,415
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void ack_irq(uint8_t *pcn) { uint8_t ret; g_assert(get_irq(FLOPPY_IRQ)); floppy_send(CMD_SENSE_INT); floppy_recv(); ret = floppy_recv(); if (pcn != NULL) { *pcn = ret; } g_assert(!get_irq(FLOPPY_IRQ)); }
152,499,083,489,902,330,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,416
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static uint8_t cmos_read(uint8_t reg) { outb(base + 0, reg); return inb(base + 1); }
23,649,141,471,703,786,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,417
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_cve_2021_20196(void) { QTestState *s; if (!qtest_check_clang_sanitizer()) { return; } s = qtest_initf("-nographic -m 32M -nodefaults " DRIVE_FLOPPY_BLANK); qtest_outw(s, 0x3f4, 0x0500); qtest_outb(s, 0x3f5, 0x00); qtest_outb(s, 0x3f5, 0x00); qtest_outw(s, 0x3f...
196,104,225,794,470,670,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,418
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_read_id(void) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl; uint8_t st0; uint8_t msr; /* Seek to track 0 and check with READ ID */ send_seek(0); floppy_send(CMD_READ_ID); g_assert(!get_irq(FLOPPY_IRQ)); floppy_send(head << 2 | drive); msr = inb(FLOPP...
31,258,094,142,419,766,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,419
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_read_no_dma_1(void) { uint8_t ret; outb(FLOPPY_BASE + reg_dor, inb(FLOPPY_BASE + reg_dor) & ~0x08); send_seek(0); ret = send_read_no_dma_command(1, 0x04); g_assert(ret == 0); }
284,432,062,618,250,030,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,420
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static uint8_t floppy_recv(void) { uint8_t msr; msr = inb(FLOPPY_BASE + reg_msr); assert_bit_set(msr, RQM | DIO); return inb(FLOPPY_BASE + reg_fifo); }
134,208,809,704,744,070,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,421
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_no_media_on_start(void) { uint8_t dir; /* Media changed bit must be set all time after start if there is * no media in drive. */ dir = inb(FLOPPY_BASE + reg_dir); assert_bit_set(dir, DSKCHG); dir = inb(FLOPPY_BASE + reg_dir); assert_bit_set(dir, DSKCHG); send_seek(1); ...
239,947,713,288,783,080,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,422
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_relative_seek(void) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl = 1; uint8_t pcn; /* Send seek to track 0 */ send_seek(0); /* Send relative seek to increase track by 1 */ floppy_send(CMD_RELATIVE_SEEK_IN); floppy_send(head << 2 | drive); g_assert(!get_ir...
266,448,851,583,605,320,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,423
qemu
46609b90d9e3a6304def11038a76b58ff43f77bc
https://github.com/bonzini/qemu
https://gitlab.com/qemu-project/qemu/-/commit/46609b90d9e3a6304def11038a76b58ff43f77bc
tests/qtest/fdc-test: Add a regression test for CVE-2021-3507 Add the reproducer from https://gitlab.com/qemu-project/qemu/-/issues/339 Without the previous commit, when running 'make check-qtest-i386' with QEMU configured with '--enable-sanitizers' we get: ==4028352==ERROR: AddressSanitizer: heap-buffer-overflow ...
0
static void test_cmos(void) { uint8_t cmos; cmos = cmos_read(CMOS_FLOPPY); g_assert(cmos == 0x40 || cmos == 0x50); }
61,846,654,057,077,690,000,000,000,000,000,000,000
None
null
[ "CWE-787" ]
CVE-2021-3507
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the hos...
https://nvd.nist.gov/vuln/detail/CVE-2021-3507
507,424
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static boolean poly_inside(inside_t * inside_context, pointf p) { static node_t *lastn; /* last node argument */ static polygon_t *poly; static int last, outp, sides; static pointf O; /* point (0,0) */ static pointf *vertex; static double xsize, ysize, scalex, scaley, box_URx, box_URy; int...
196,241,091,177,989,080,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,425
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void pos_reclbl(field_t * f, pointf ul, int sides) { int i, last, mask; f->sides = sides; f->b.LL = pointfof(ul.x, ul.y - f->size.y); f->b.UR = pointfof(ul.x + f->size.x, ul.y); last = f->n_flds - 1; for (i = 0; i <= last; i++) { if (sides) { if (f->LR) { if (i == 0) { if (...
301,935,473,426,894,300,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,426
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void dumpL(field_t * info, int level) { int i; indent(level); if (info->n_flds == 0) { fprintf(stderr, "Label \"%s\" ", info->lp->text); prbox(info->b); } else { fprintf(stderr, "Tbl "); prbox(info->b); for (i = 0; i < info->n_flds; i++) { dumpL(info->fld[i], level + 1); } } }
126,304,258,599,853,740,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,427
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void star_vertices (pointf* vertices, pointf* bb) { int i; pointf sz = *bb; double offset, a, aspect = (1 + sin(alpha3))/(2*cos(alpha)); double r, r0, theta = alpha; /* Scale up width or height to required aspect ratio */ a = sz.y/sz.x; if (a > aspect) { sz.x = sz.y/aspect; } ...
242,671,158,468,693,660,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,428
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void free_field(field_t * f) { int i; for (i = 0; i < f->n_flds; i++) { free_field(f->fld[i]); } free(f->id); free_label(f->lp); free(f->fld); free(f); }
30,830,373,313,190,526,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,429
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
shape_desc *bind_shape(char *name, node_t * np) { shape_desc *ptr, *rv = NULL; const char *str; str = safefile(agget(np, "shapefile")); /* If shapefile is defined and not epsf, set shape = custom */ if (str && !streq(name, "epsf")) name = "custom"; if (!streq(name, "custom")) { for (ptr = Sha...
131,378,591,872,470,300,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,430
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void point_init(node_t * n) { polygon_t *poly = NEW(polygon_t); int sides, outp, peripheries = ND_shape(n)->polygon->peripheries; double sz; pointf P, *vertices; int i, j; double w, h; /* set width and height, and make them equal * if user has set weight or height, use it. ...
158,463,323,505,508,250,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,431
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static pointf cylinder_size (pointf sz) { sz.y *= 1.375; return sz; }
206,771,808,298,223,300,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,432
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
void gv_initShapes(void) { pointf p = { 0, 0 }; poly_inside(NULL, p); point_inside(NULL, p); star_inside(NULL, p); }
153,228,648,977,706,710,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,433
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void point_gencode(GVJ_t * job, node_t * n) { obj_state_t *obj = job->obj; polygon_t *poly; int i, j, sides, peripheries, style; pointf P, *vertices; static pointf *AF; static int A_size; boolean filled; char *color; int doMap = (obj->url || obj->explicit_tooltip); if (do...
214,247,585,499,959,750,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,434
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static boolean cylinder_inside(inside_t * inside_context, pointf p) { return TRUE; }
43,259,035,305,029,300,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,435
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void cylinder_draw(GVJ_t * job, pointf * AF, int sides, int style, int filled) { pointf vertices[7]; double y0 = AF[0].y; double y02 = y0+y0; vertices[0] = AF[0]; vertices[1].x = AF[1].x; vertices[1].y = y02 - AF[1].y; vertices[2].x = AF[2].x; vertices[2].y = y02 - AF[2].y; v...
2,062,761,288,643,424,600,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,436
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void poly_free(node_t * n) { polygon_t *p = ND_shape_info(n); if (p) { free(p->vertices); free(p); } }
137,078,804,950,080,200,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,437
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
char *findFillDflt(node_t * n, char *dflt) { char *color; color = late_nnstring(n, N_fillcolor, ""); if (!color[0]) { /* for backward compatibility, default fill is same as pen */ color = late_nnstring(n, N_color, ""); if (!color[0]) { color = dflt; } } return color; }
206,939,534,300,635,180,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,438
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
char *findAttrColor(void *obj, attrsym_t *colorattr, char *dflt){ char *color; if(colorattr != NULL) color = late_nnstring(obj, colorattr, dflt); else if(dflt != NULL && dflt[0]) color = dflt; else color = DEFAULT_FILL; return color; }
118,800,690,130,000,360,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,439
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static double quant(double val, double q) { int i; i = val / q; if (i * q + .00001 < val) i++; return i * q; }
37,116,155,722,717,200,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,440
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static port poly_port(node_t * n, char *portname, char *compass) { port rv; boxf *bp; int sides; /* bitmap of which sides the port lies along */ if (portname[0] == '\0') return Center; if (compass == NULL) compass = "_"; sides = BOTTOM | RIGHT | TOP | LEFT; if ((ND_label(n)->html) && (...
86,807,080,599,976,350,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,441
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
port resolvePort(node_t * n, node_t * other, port * oldport) { port rv; char *compass = closestSide(n, other, oldport); /* transfer name pointer; all other necessary fields will be regenerated */ rv.name = oldport->name; compassPort(n, oldport->bp, &rv, compass, oldport->side, NULL); return rv...
267,429,327,889,373,320,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,442
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void record_init(node_t * n) { field_t *info; pointf ul, sz; int flip, len; char *textbuf; /* temp buffer for storing labels */ int sides = BOTTOM | RIGHT | TOP | LEFT; /* Always use rankdir to determine how records are laid out */ flip = NOT(GD_realflip(agraphof(n))); reclblp =...
211,930,348,113,326,280,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,443
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static field_t *parse_reclbl(node_t * n, int LR, int flag, char *text) { field_t *fp, *rv = NEW(field_t); char *tsp, *psp=NULL, *hstsp, *hspsp=NULL, *sp; char *tmpport = NULL; int maxf, cnt, mode, wflag, ishardspace, fi; textlabel_t *lbl = ND_label(n); unsigned char uc; fp = NULL; for (...
104,203,838,260,981,160,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,444
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void unrecognized(node_t * n, char *p) { agerr(AGWARN, "node %s, port %s unrecognized\n", agnameof(n), p); }
229,108,075,926,661,850,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,445
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
char *findFill(node_t * n) { return (findFillDflt(n, DEFAULT_FILL)); }
245,696,062,261,791,100,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,446
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void poly_gencode(GVJ_t * job, node_t * n) { obj_state_t *obj = job->obj; polygon_t *poly; double xsize, ysize; int i, j, peripheries, sides, style; pointf P, *vertices; static pointf *AF; static int A_size; boolean filled; boolean usershape_p; boolean pfilled; /* true if...
115,106,857,701,310,510,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,447
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static port record_port(node_t * n, char *portname, char *compass) { field_t *f; field_t *subf; port rv; int sides; /* bitmap of which sides the port lies along */ if (portname[0] == '\0') return Center; sides = BOTTOM | RIGHT | TOP | LEFT; if (compass == NULL) compass = "_"; f = (f...
132,099,673,038,017,630,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,448
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
isEllipse(node_t* n) { polygon_t *p; if ((p = ND_shape(n)->polygon)) { return (p->sides <= 2); } else return 0; }
245,214,956,515,833,940,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,449
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static int poly_path(node_t * n, port * p, int side, boxf rv[], int *kptr) { side = 0; if (ND_label(n)->html && ND_has_port(n)) { side = html_path(n, p, side, rv, kptr); } return side; }
126,377,922,617,294,390,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,450
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void prbox(boxf b) { fprintf(stderr, "((%.5g,%.5g),(%.5g,%.5g))\n", b.LL.x, b.LL.y, b.UR.x, b.UR.y); }
176,170,060,763,435,920,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,451
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void resize_reclbl(field_t * f, pointf sz, int nojustify_p) { int i, amt; double inc; pointf d; pointf newsz; field_t *sf; /* adjust field */ d.x = sz.x - f->size.x; d.y = sz.y - f->size.y; f->size = sz; /* adjust text area */ if (f->lp && !nojustify_p) { f->lp->spa...
285,649,341,256,045,240,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,452
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static void Mcircle_hack(GVJ_t * job, node_t * n) { double x, y; pointf AF[2], p; y = .7500; x = .6614; /* x^2 + y^2 = 1.0 */ p.y = y * ND_ht(n) / 2.0; p.x = ND_rw(n) * x; /* assume node is symmetric */ AF[0] = add_pointf(p, ND_coord(n)); AF[1].y = AF[0].y; AF[1].x = AF[0].x - 2...
333,462,420,539,878,440,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,453
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static int invflip_side(int side, int rankdir) { switch (rankdir) { case RANKDIR_TB: break; case RANKDIR_BT: switch (side) { case TOP: side = BOTTOM; break; case BOTTOM: side = TOP; break; default: break; } break; case RANKDIR_LR: switch (side) { case TOP: side = R...
86,026,290,257,018,640,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,454
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static int same_side(pointf p0, pointf p1, pointf L0, pointf L1) { int s0, s1; double a, b, c; /* a x + b y = c */ a = -(L1.y - L0.y); b = (L1.x - L0.x); c = a * L0.x + b * L0.y; s0 = (a * p0.x + b * p0.y - c >= 0); s1 = (a * p1.x + b * p1.y - c >= 0); return (s0 == s1); }
318,882,117,032,339,400,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032
507,455
graphviz
784411ca3655c80da0f6025ab20634b2a6ff696b
https://gitlab.com/graphviz/graphviz
https://gitlab.com/graphviz/graphviz/-/commit/784411ca3655c80da0f6025ab20634b2a6ff696b
fix: out-of-bounds write on invalid label When the label for a node cannot be parsed (due to it being malformed), it falls back on the symbol name of the node itself. I.e. the default label the node would have had if it had no label attribute at all. However, this is applied by dynamically altering the node's label to...
0
static boolean record_inside(inside_t * inside_context, pointf p) { field_t *fld0; boxf *bp = inside_context->s.bp; node_t *n = inside_context->s.n; boxf bbox; /* convert point to node coordinate system */ p = ccwrotatepf(p, 90 * GD_rankdir(agraphof(n))); if (bp == NULL) { fld0 = (field_...
331,440,809,603,612,520,000,000,000,000,000,000,000
None
null
[ "CWE-120" ]
CVE-2020-18032
Buffer Overflow in Graphviz Graph Visualization Tools from commit ID f8b9e035 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) by loading a crafted file into the "lib/common/shapes.c" component.
https://nvd.nist.gov/vuln/detail/CVE-2020-18032