prior_version
stringlengths
69
33.8k
after_version
stringlengths
27
34.8k
vuln_id
stringlengths
13
19
cwe_id
stringclasses
137 values
score
float64
0
10
chain
stringlengths
78
111
dataset
stringclasses
2 values
summary
stringlengths
44
6.88k
published_date
stringdate
2009-05-11 00:00:00
2022-08-11 00:00:00
chain_len
int64
1
1
project
stringlengths
26
59
commit_href
stringlengths
74
107
commit_sha
stringlengths
40
40
patch
stringclasses
1 value
chain_ord
stringlengths
44
44
before_first_fix_commit
stringlengths
44
88
last_fix_commit
stringlengths
40
40
chain_ord_pos
int64
1
1
commit_datetime
stringlengths
20
20
message
stringlengths
2
8.66k
author
stringlengths
2
44
comments
stringclasses
155 values
stats
stringclasses
474 values
files
listlengths
1
1
file_extension
stringclasses
14 values
cwe
stringclasses
25 values
file_paths
listlengths
1
1
file_paths_str
stringlengths
4
162
num_files
int64
1
1
v3d_submit_cl_ioctl(struct drm_device *dev, void *data, if (args->bcl_start != args->bcl_end) { bin = kcalloc(1, sizeof(*bin), GFP_KERNEL); if (!bin) return -ENOMEM; ret = v3d_job_init(v3d, file_priv, &bin->base, v3d_job_free, args->in_sync_bcl); if (ret) { v3d_job_put(&render->base); return...
v3d_submit_cl_ioctl(struct drm_device *dev, void *data, if (args->bcl_start != args->bcl_end) { bin = kcalloc(1, sizeof(*bin), GFP_KERNEL); if (!bin) { v3d_job_put(&render->base); return -ENOMEM; } ret = v3d_job_init(v3d, file_priv, &bin->base, v3d_job_free, args->in_sync_bcl); if (ret) { ...
CVE-2019-19044
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/29cd13cfd7624726d9e6becbae9aa419ef35af7f'}
nvd
Two memory leaks in the v3d_submit_cl_ioctl() function in drivers/gpu/drm/v3d/v3d_gem.c in the Linux kernel before 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering kcalloc() or v3d_job_init() failures, aka CID-29cd13cfd762.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/29cd13cfd7624726d9e6becbae9aa419ef35af7f
29cd13cfd7624726d9e6becbae9aa419ef35af7f
SINGLE
['29cd13cfd7624726d9e6becbae9aa419ef35af7f']
{'4cad2a574d342cd9b658db6e32e9024f559383ed'}
29cd13cfd7624726d9e6becbae9aa419ef35af7f
1
10/21/2019, 18:52:49
drm/v3d: Fix memory leak in v3d_submit_cl_ioctl In the impelementation of v3d_submit_cl_ioctl() there are two memory leaks. One is when allocation for bin fails, and the other is when bin initialization fails. If kcalloc fails to allocate memory for bin then render->base should be put. Also, if v3d_job_init() fails to...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -557,13 +557,16 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data,\n \n \tif (args->bcl_start != args->bcl_end) {\n \t\tbin = kcalloc(1, sizeof(*bin), GFP_KERNEL);\n-\t\tif (!bin)\n+\t\tif (!bin) {\n+\t\t\tv3d_job_put(&render->base...
c
CWE-401
[ "drivers/gpu/drm/v3d/v3d_gem.c" ]
drivers/gpu/drm/v3d/v3d_gem.c
1
static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size) } err = mlx5_vector2eqn(mdev, smp_processor_id(), &eqn, &irqn); if (err) goto err_cqwq; cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size));
static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size) } err = mlx5_vector2eqn(mdev, smp_processor_id(), &eqn, &irqn); if (err) { kvfree(in); goto err_cqwq; } cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size));
CVE-2019-19045
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/c8c2a057fdc7de1cd16f4baa51425b932a42eb39'}
nvd
A memory leak in the mlx5_fpga_conn_create_cq() function in drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering mlx5_vector2eqn() failures, aka CID-c8c2a057fdc7.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c8c2a057fdc7de1cd16f4baa51425b932a42eb39
c8c2a057fdc7de1cd16f4baa51425b932a42eb39
SINGLE
['c8c2a057fdc7de1cd16f4baa51425b932a42eb39']
{'61ea02d2c13106116c6e4916ac5d9dd41151c959'}
c8c2a057fdc7de1cd16f4baa51425b932a42eb39
1
09/25/2019, 03:20:34
net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated memory should be released. Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Saeed Mahameed <s...
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -464,8 +464,10 @@ static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size)\n \t}\n \n \terr = mlx5_vector2eqn(mdev, smp_processor_id(), &eqn, &irqn);\n-\tif (err)\n+\tif (err) {\n+\t\tkvfree(in);\n \t\tgoto err_cqwq;\n...
c
CWE-401
[ "drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c" ]
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
1
static int __ipmi_bmc_register(struct ipmi_smi *intf, bmc->pdev.name = "ipmi_bmc"; rv = ida_simple_get(&ipmi_bmc_ida, 0, 0, GFP_KERNEL); if (rv < 0) goto out; bmc->pdev.dev.driver = &ipmidriver.driver; bmc->pdev.id = rv; bmc->pdev.dev.release = release_bmc_device;
static int __ipmi_bmc_register(struct ipmi_smi *intf, bmc->pdev.name = "ipmi_bmc"; rv = ida_simple_get(&ipmi_bmc_ida, 0, 0, GFP_KERNEL); if (rv < 0) { kfree(bmc); goto out; } bmc->pdev.dev.driver = &ipmidriver.driver; bmc->pdev.id = rv; bmc->pdev.dev.release = release_bmc_device;
CVE-2019-19046
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/4aa7afb0ee20a97fbf0c5bab3df028d5fb85fdab'}
nvd
** DISPUTED ** A memory leak in the __ipmi_bmc_register() function in drivers/char/ipmi/ipmi_msghandler.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering ida_simple_get() failure, aka CID-4aa7afb0ee20. NOTE: third parties dispute the relevance of this ...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4aa7afb0ee20a97fbf0c5bab3df028d5fb85fdab
4aa7afb0ee20a97fbf0c5bab3df028d5fb85fdab
SINGLE
['4aa7afb0ee20a97fbf0c5bab3df028d5fb85fdab']
{'2a21d858f96bdfd3de28abc1341935d06fb47373'}
4aa7afb0ee20a97fbf0c5bab3df028d5fb85fdab
1
10/21/2019, 20:06:48
ipmi: Fix memory leak in __ipmi_bmc_register In the impelementation of __ipmi_bmc_register() the allocated memory for bmc should be released in case ida_simple_get() fails. Fixes: 68e7e50f195f ("ipmi: Don't use BMC product/dev ids in the BMC name") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Message-Id...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -3020,8 +3020,11 @@ static int __ipmi_bmc_register(struct ipmi_smi *intf,\n \t\tbmc->pdev.name = \"ipmi_bmc\";\n \n \t\trv = ida_simple_get(&ipmi_bmc_ida, 0, 0, GFP_KERNEL);\n-\t\tif (rv < 0)\n+\t\tif (rv < 0) {\n+\t\t\tkfree(bmc);\n \t\t\...
c
CWE-401
[ "drivers/char/ipmi/ipmi_msghandler.c" ]
drivers/char/ipmi/ipmi_msghandler.c
1
mlx5_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter, return -ENOMEM; err = mlx5_crdump_collect(dev, cr_data); if (err) return err; if (priv_ctx) { struct mlx5_fw_reporter_ctx *fw_reporter_ctx = priv_ctx;
mlx5_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter, return -ENOMEM; err = mlx5_crdump_collect(dev, cr_data); if (err) goto free_data; if (priv_ctx) { struct mlx5_fw_reporter_ctx *fw_reporter_ctx = priv_ctx;
CVE-2019-19047
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/c7ed6d0183d5ea9bc31bcaeeba4070bd62546471'}
nvd
A memory leak in the mlx5_fw_fatal_reporter_dump() function in drivers/net/ethernet/mellanox/mlx5/core/health.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering mlx5_crdump_collect() failures, aka CID-c7ed6d0183d5.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c7ed6d0183d5ea9bc31bcaeeba4070bd62546471
c7ed6d0183d5ea9bc31bcaeeba4070bd62546471
SINGLE
['c7ed6d0183d5ea9bc31bcaeeba4070bd62546471']
{'c8c2a057fdc7de1cd16f4baa51425b932a42eb39'}
c7ed6d0183d5ea9bc31bcaeeba4070bd62546471
1
09/27/2019, 22:37:28
net/mlx5: fix memory leak in mlx5_fw_fatal_reporter_dump In mlx5_fw_fatal_reporter_dump if mlx5_crdump_collect fails the allocated memory for cr_data must be released otherwise there will be memory leak. To fix this, this commit changes the return instruction into goto error handling. Fixes: 9b1f29823605 ("net/mlx5: ...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -572,7 +572,7 @@ mlx5_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter,\n \t\treturn -ENOMEM;\n \terr = mlx5_crdump_collect(dev, cr_data);\n \tif (err)\n-\t\treturn err;\n+\t\tgoto free_data;\n \n \tif (priv_ctx) {\n \t\tstr...
c
CWE-401
[ "drivers/net/ethernet/mellanox/mlx5/core/health.c" ]
drivers/net/ethernet/mellanox/mlx5/core/health.c
1
static int hgcm_call_preprocess_linaddr( if (!bounce_buf) return -ENOMEM; if (copy_in) { ret = copy_from_user(bounce_buf, (void __user *)buf, len); if (ret) static int hgcm_call_preprocess_linaddr( memset(bounce_buf, 0, len); } *bounce_buf_ret = bounce_buf; hgcm_call_add_pagelist_size(bounce_buf, len, e...
static int hgcm_call_preprocess_linaddr( if (!bounce_buf) return -ENOMEM; *bounce_buf_ret = bounce_buf; if (copy_in) { ret = copy_from_user(bounce_buf, (void __user *)buf, len); if (ret) static int hgcm_call_preprocess_linaddr( memset(bounce_buf, 0, len); } hgcm_call_add_pagelist_size(bounce_buf, len, ...
CVE-2019-19048
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/e0b0cb9388642c104838fac100a4af32745621e2'}
nvd
A memory leak in the crypto_reportstat() function in drivers/virt/vboxguest/vboxguest_utils.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption) by triggering copy_form_user() failures, aka CID-e0b0cb938864.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e0b0cb9388642c104838fac100a4af32745621e2
e0b0cb9388642c104838fac100a4af32745621e2
SINGLE
['e0b0cb9388642c104838fac100a4af32745621e2']
{'5dc54a06f6e575f146492661129d24f3b50d17bb'}
e0b0cb9388642c104838fac100a4af32745621e2
1
09/30/2019, 20:42:22
virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr In hgcm_call_preprocess_linaddr memory is allocated for bounce_buf but is not released if copy_form_user fails. In order to prevent memory leak in case of failure, the assignment to bounce_buf_ret is moved before the error check. This way the allocated bounce...
Navid Emamdoost
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -220,6 +220,8 @@ static int hgcm_call_preprocess_linaddr(\n \tif (!bounce_buf)\n \t\treturn -ENOMEM;\n \n+\t*bounce_buf_ret = bounce_buf;\n+\n \tif (copy_in) {\n \t\tret = copy_from_user(bounce_buf, (void __user *)buf, len);\n \t\tif (ret)...
c
CWE-401
[ "drivers/virt/vboxguest/vboxguest_utils.c" ]
drivers/virt/vboxguest/vboxguest_utils.c
1
static int __init unittest_data_add(void) of_fdt_unflatten_tree(unittest_data, NULL, &unittest_data_node); if (!unittest_data_node) { pr_warn("%s: No tree to attach; not running tests\n", __func__); return -ENODATA; }
static int __init unittest_data_add(void) of_fdt_unflatten_tree(unittest_data, NULL, &unittest_data_node); if (!unittest_data_node) { pr_warn("%s: No tree to attach; not running tests\n", __func__); kfree(unittest_data); return -ENODATA; }
CVE-2019-19049
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/e13de8fe0d6a51341671bbe384826d527afe8d44'}
nvd
** DISPUTED ** A memory leak in the unittest_data_add() function in drivers/of/unittest.c in the Linux kernel before 5.3.10 allows attackers to cause a denial of service (memory consumption) by triggering of_fdt_unflatten_tree() failures, aka CID-e13de8fe0d6a. NOTE: third parties dispute the relevance of this because u...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e13de8fe0d6a51341671bbe384826d527afe8d44
e13de8fe0d6a51341671bbe384826d527afe8d44
SINGLE
['e13de8fe0d6a51341671bbe384826d527afe8d44']
{'9af865d95bd730c1d1035acd5dd6df105da98d0c'}
e13de8fe0d6a51341671bbe384826d527afe8d44
1
10/04/2019, 18:58:43
of: unittest: fix memory leak in unittest_data_add In unittest_data_add, a copy buffer is created via kmemdup. This buffer is leaked if of_fdt_unflatten_tree fails. The release for the unittest_data buffer is added. Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree") Signed-off-by: Navid ...
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1207,6 +1207,7 @@ static int __init unittest_data_add(void)\n \tof_fdt_unflatten_tree(unittest_data, NULL, &unittest_data_node);\n \tif (!unittest_data_node) {\n \t\tpr_warn(\"%s: No tree to attach; not running tests\\n\", __func__);\n+\t...
c
CWE-401
[ "drivers/of/unittest.c" ]
drivers/of/unittest.c
1
int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, drop_alg: crypto_mod_put(alg); if (err) return err; return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); }
int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, drop_alg: crypto_mod_put(alg); if (err) { kfree_skb(skb); return err; } return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); }
CVE-2019-19050
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/c03b04dcdba1da39903e23cc4d072abf8f68f2dd'}
nvd
A memory leak in the crypto_reportstat() function in crypto/crypto_user_stat.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering crypto_reportstat_alg() failures, aka CID-c03b04dcdba1.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c03b04dcdba1da39903e23cc4d072abf8f68f2dd
c03b04dcdba1da39903e23cc4d072abf8f68f2dd
SINGLE
['c03b04dcdba1da39903e23cc4d072abf8f68f2dd']
{'ffdde5932042600c6807d46c1550b28b0db6a3bc'}
c03b04dcdba1da39903e23cc4d072abf8f68f2dd
1
10/04/2019, 19:34:54
crypto: user - fix memory leak in crypto_reportstat In crypto_reportstat, a new skb is created by nlmsg_new(). This skb is leaked if crypto_reportstat_alg() fails. Required release for skb is added. Fixes: cac5818c25d0 ("crypto: user - Implement a generic crypto statistics") Cc: <stable@vger.kernel.org> Signed-off-by...
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -328,8 +328,10 @@ int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,\n drop_alg:\n \tcrypto_mod_put(alg);\n \n-\tif (err)\n+\tif (err) {\n+\t\tkfree_skb(skb);\n \t\treturn err;\n+\t}\n \n \treturn nlmsg_unicast(net->cry...
c
CWE-401
[ "crypto/crypto_user_stat.c" ]
crypto/crypto_user_stat.c
1
int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, "%d\n", result); result = 0; error_cmd: kfree(cmd); kfree_skb(ack_skb); error_msg_to_dev: error_alloc: d_fnend(4, dev, "(wimax_dev %p state %d) = %d\n", wimax_dev, state, result); return result; }
int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev, "%d\n", result); result = 0; error_cmd: kfree_skb(ack_skb); error_msg_to_dev: error_alloc: d_fnend(4, dev, "(wimax_dev %p state %d) = %d\n", wimax_dev, state, result); kfree(cmd); return result; }
CVE-2019-19051
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/6f3ef5c25cc762687a7341c18cbea5af54461407'}
nvd
A memory leak in the i2400m_op_rfkill_sw_toggle() function in drivers/net/wimax/i2400m/op-rfkill.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption), aka CID-6f3ef5c25cc7.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6f3ef5c25cc762687a7341c18cbea5af54461407
6f3ef5c25cc762687a7341c18cbea5af54461407
SINGLE
['6f3ef5c25cc762687a7341c18cbea5af54461407']
{'63a41746827cb16dc6ad0d4d761ab4e7dda7a0c3'}
6f3ef5c25cc762687a7341c18cbea5af54461407
1
10/26/2019, 04:53:30
wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle In the implementation of i2400m_op_rfkill_sw_toggle() the allocated buffer for cmd should be released before returning. The documentation for i2400m_msg_to_dev() says when it returns the buffer can be reused. Meaning cmd should be released in either case. Mov...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -127,12 +127,12 @@ int i2400m_op_rfkill_sw_toggle(struct wimax_dev *wimax_dev,\n \t\t\t\"%d\\n\", result);\n \tresult = 0;\n error_cmd:\n-\tkfree(cmd);\n \tkfree_skb(ack_skb);\n error_msg_to_dev:\n error_alloc:\n \td_fnend(4, dev, \"(wimax...
c
CWE-401
[ "drivers/net/wimax/i2400m/op-rfkill.c" ]
drivers/net/wimax/i2400m/op-rfkill.c
1
static int gs_can_open(struct net_device *netdev) rc); usb_unanchor_urb(urb); break; }
static int gs_can_open(struct net_device *netdev) rc); usb_unanchor_urb(urb); usb_free_urb(urb); break; }
CVE-2019-19052
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/fb5be6a7b4863ecc44963bb80ca614584b6c7817'}
nvd
A memory leak in the gs_can_open() function in drivers/net/can/usb/gs_usb.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering usb_submit_urb() failures, aka CID-fb5be6a7b486.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fb5be6a7b4863ecc44963bb80ca614584b6c7817
fb5be6a7b4863ecc44963bb80ca614584b6c7817
SINGLE
['fb5be6a7b4863ecc44963bb80ca614584b6c7817']
{'db9ee384f6f71f7c5296ce85b7c1a2a2527e7c72'}
fb5be6a7b4863ecc44963bb80ca614584b6c7817
1
09/20/2019, 02:44:38
can: gs_usb: gs_can_open(): prevent memory leak In gs_can_open() if usb_submit_urb() fails the allocated urb should be released. Fixes: d08e973a77d1 ("can: gs_usb: Added support for the GS_USB CAN devices") Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off...
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -623,6 +623,7 @@ static int gs_can_open(struct net_device *netdev)\n \t\t\t\t\t rc);\n \n \t\t\t\tusb_unanchor_urb(urb);\n+\t\t\t\tusb_free_urb(urb);\n \t\t\t\tbreak;\n \t\t\t}", "path": "drivers/net/can/usb/gs_usb.c", "raw_url":...
c
CWE-401
[ "drivers/net/can/usb/gs_usb.c" ]
drivers/net/can/usb/gs_usb.c
1
static ssize_t rpmsg_eptdev_write_iter(struct kiocb *iocb, if (!kbuf) return -ENOMEM; if (!copy_from_iter_full(kbuf, len, from)) return -EFAULT; if (mutex_lock_interruptible(&eptdev->ept_lock)) { ret = -ERESTARTSYS;
static ssize_t rpmsg_eptdev_write_iter(struct kiocb *iocb, if (!kbuf) return -ENOMEM; if (!copy_from_iter_full(kbuf, len, from)) { ret = -EFAULT; goto free_kbuf; } if (mutex_lock_interruptible(&eptdev->ept_lock)) { ret = -ERESTARTSYS;
CVE-2019-19053
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/bbe692e349e2a1edf3fe0a29a0e05899c9c94d51'}
nvd
A memory leak in the rpmsg_eptdev_write_iter() function in drivers/rpmsg/rpmsg_char.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering copy_from_iter_full() failures, aka CID-bbe692e349e2.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/bbe692e349e2a1edf3fe0a29a0e05899c9c94d51
bbe692e349e2a1edf3fe0a29a0e05899c9c94d51
SINGLE
['bbe692e349e2a1edf3fe0a29a0e05899c9c94d51']
{'54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c'}
bbe692e349e2a1edf3fe0a29a0e05899c9c94d51
1
09/17/2019, 03:31:23
rpmsg: char: release allocated memory In rpmsg_eptdev_write_iter, if copy_from_iter_full fails the allocated buffer needs to be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Navid Emamdoost
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -227,8 +227,10 @@ static ssize_t rpmsg_eptdev_write_iter(struct kiocb *iocb,\n \tif (!kbuf)\n \t\treturn -ENOMEM;\n \n-\tif (!copy_from_iter_full(kbuf, len, from))\n-\t\treturn -EFAULT;\n+\tif (!copy_from_iter_full(kbuf, len, from)) {\n+\t...
c
CWE-401
[ "drivers/rpmsg/rpmsg_char.c" ]
drivers/rpmsg/rpmsg_char.c
1
int cx23888_ir_probe(struct cx23885_dev *dev) return -ENOMEM; spin_lock_init(&state->rx_kfifo_lock); if (kfifo_alloc(&state->rx_kfifo, CX23888_IR_RX_KFIFO_SIZE, GFP_KERNEL)) return -ENOMEM; state->dev = dev; sd = &state->sd;
int cx23888_ir_probe(struct cx23885_dev *dev) return -ENOMEM; spin_lock_init(&state->rx_kfifo_lock); if (kfifo_alloc(&state->rx_kfifo, CX23888_IR_RX_KFIFO_SIZE, GFP_KERNEL)) { kfree(state); return -ENOMEM; } state->dev = dev; sd = &state->sd;
CVE-2019-19054
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/a7b2df76b42bdd026e3106cf2ba97db41345a177'}
nvd
A memory leak in the cx23888_ir_probe() function in drivers/media/pci/cx23885/cx23888-ir.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering kfifo_alloc() failures, aka CID-a7b2df76b42b.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a7b2df76b42bdd026e3106cf2ba97db41345a177
a7b2df76b42bdd026e3106cf2ba97db41345a177
SINGLE
['a7b2df76b42bdd026e3106cf2ba97db41345a177']
{'3eab054614cd50ab4254785e7346a82190d78b82'}
a7b2df76b42bdd026e3106cf2ba97db41345a177
1
09/25/2019, 15:02:41
media: rc: prevent memory leak in cx23888_ir_probe In cx23888_ir_probe if kfifo_alloc fails the allocated memory for state should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Navid Emamdoost
{'com_1': {'author': 'luochenglcs', 'datetime': '11/22/2019, 06:49:20', 'body': 'in cx23888_ir_probe function, when v4l2_device_register_subdev failed, why not release state memory?\r\nif v4l2_device_register_subdev failed, state variable will not add v4l2_dev->subdevs list, then it memory will never release.'}}
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -1167,8 +1167,11 @@ int cx23888_ir_probe(struct cx23885_dev *dev)\n \t\treturn -ENOMEM;\n \n \tspin_lock_init(&state->rx_kfifo_lock);\n-\tif (kfifo_alloc(&state->rx_kfifo, CX23888_IR_RX_KFIFO_SIZE, GFP_KERNEL))\n+\tif (kfifo_alloc(&state->...
c
CWE-401
[ "drivers/media/pci/cx23885/cx23888-ir.c" ]
drivers/media/pci/cx23885/cx23888-ir.c
1
static int nl80211_get_ftm_responder_stats(struct sk_buff *skb, hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, NL80211_CMD_GET_FTM_RESPONDER_STATS); if (!hdr) return -ENOBUFS; if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) goto nla_put_failure;
static int nl80211_get_ftm_responder_stats(struct sk_buff *skb, hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, NL80211_CMD_GET_FTM_RESPONDER_STATS); if (!hdr) goto nla_put_failure; if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) goto nla_put_failure;
CVE-2019-19055
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/1399c59fa92984836db90538cf92397fe7caaa57'}
nvd
** DISPUTED ** A memory leak in the nl80211_get_ftm_responder_stats() function in net/wireless/nl80211.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering nl80211hdr_put() failures, aka CID-1399c59fa929. NOTE: third parties dispute the relevance of this ...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1399c59fa92984836db90538cf92397fe7caaa57
1399c59fa92984836db90538cf92397fe7caaa57
SINGLE
['1399c59fa92984836db90538cf92397fe7caaa57']
{'4ac2813cc867ae563a1ba5a9414bfb554e5796fa'}
1399c59fa92984836db90538cf92397fe7caaa57
1
10/04/2019, 19:42:19
nl80211: fix memory leak in nl80211_get_ftm_responder_stats In nl80211_get_ftm_responder_stats, a new skb is created via nlmsg_new named msg. If nl80211hdr_put() fails, then msg should be released. The return statement should be replace by goto to error handling code. Fixes: 81e54d08d9d8 ("cfg80211: support FTM respo...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -13682,7 +13682,7 @@ static int nl80211_get_ftm_responder_stats(struct sk_buff *skb,\n \thdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,\n \t\t\t NL80211_CMD_GET_FTM_RESPONDER_STATS);\n \tif (!hdr)\n-\t\treturn -ENOBUFS;\...
c
CWE-401
[ "net/wireless/nl80211.c" ]
net/wireless/nl80211.c
1
static int mwifiex_pcie_alloc_cmdrsp_buf(struct mwifiex_adapter *adapter) } skb_put(skb, MWIFIEX_UPLD_SIZE); if (mwifiex_map_pci_memory(adapter, skb, MWIFIEX_UPLD_SIZE, PCI_DMA_FROMDEVICE)) return -1; card->cmdrsp_buf = skb;
static int mwifiex_pcie_alloc_cmdrsp_buf(struct mwifiex_adapter *adapter) } skb_put(skb, MWIFIEX_UPLD_SIZE); if (mwifiex_map_pci_memory(adapter, skb, MWIFIEX_UPLD_SIZE, PCI_DMA_FROMDEVICE)) { kfree_skb(skb); return -1; } card->cmdrsp_buf = skb;
CVE-2019-19056
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/db8fd2cde93227e566a412cf53173ffa227998bc'}
nvd
A memory leak in the mwifiex_pcie_alloc_cmdrsp_buf() function in drivers/net/wireless/marvell/mwifiex/pcie.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering mwifiex_map_pci_memory() failures, aka CID-db8fd2cde932.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/db8fd2cde93227e566a412cf53173ffa227998bc
db8fd2cde93227e566a412cf53173ffa227998bc
SINGLE
['db8fd2cde93227e566a412cf53173ffa227998bc']
{'39e50f5ce26c0aa413cf2a680a401a35ec6508bf'}
db8fd2cde93227e566a412cf53173ffa227998bc
1
10/04/2019, 20:08:52
mwifiex: pcie: Fix memory leak in mwifiex_pcie_alloc_cmdrsp_buf In mwifiex_pcie_alloc_cmdrsp_buf, a new skb is allocated which should be released if mwifiex_map_pci_memory() fails. The release is added. Fixes: fc3314609047 ("mwifiex: use pci_alloc/free_consistent APIs for PCIe") Signed-off-by: Navid Emamdoost <navid....
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -1029,8 +1029,10 @@ static int mwifiex_pcie_alloc_cmdrsp_buf(struct mwifiex_adapter *adapter)\n \t}\n \tskb_put(skb, MWIFIEX_UPLD_SIZE);\n \tif (mwifiex_map_pci_memory(adapter, skb, MWIFIEX_UPLD_SIZE,\n-\t\t\t\t PCI_DMA_FROMDEVICE))\n+\t...
c
CWE-401
[ "drivers/net/wireless/marvell/mwifiex/pcie.c" ]
drivers/net/wireless/marvell/mwifiex/pcie.c
1
static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter) skb_put(skb, MAX_EVENT_SIZE); if (mwifiex_map_pci_memory(adapter, skb, MAX_EVENT_SIZE, PCI_DMA_FROMDEVICE)) return -1; buf_pa = MWIFIEX_SKB_DMA_ADDR(skb);
static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter) skb_put(skb, MAX_EVENT_SIZE); if (mwifiex_map_pci_memory(adapter, skb, MAX_EVENT_SIZE, PCI_DMA_FROMDEVICE)) { kfree_skb(skb); kfree(card->evtbd_ring_vbase); return -1; } buf_pa = MWIFIEX_SKB_DMA_ADDR(skb);
CVE-2019-19057
{'CWE-401'}
2.9
{'https://github.com/torvalds/linux/commit/d10dcb615c8e29d403a24d35f8310a7a53e3050c'}
nvd
Two memory leaks in the mwifiex_pcie_init_evt_ring() function in drivers/net/wireless/marvell/mwifiex/pcie.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering mwifiex_map_pci_memory() failures, aka CID-d10dcb615c8e.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d10dcb615c8e29d403a24d35f8310a7a53e3050c
d10dcb615c8e29d403a24d35f8310a7a53e3050c
SINGLE
['d10dcb615c8e29d403a24d35f8310a7a53e3050c']
{'db8fd2cde93227e566a412cf53173ffa227998bc'}
d10dcb615c8e29d403a24d35f8310a7a53e3050c
1
10/04/2019, 20:16:48
mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring In mwifiex_pcie_init_evt_ring, a new skb is allocated which should be released if mwifiex_map_pci_memory() fails. The release for skb and card->evtbd_ring_vbase is added. Fixes: 0732484b47b5 ("mwifiex: separate ring initialization and ring creation routines...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -687,8 +687,11 @@ static int mwifiex_pcie_init_evt_ring(struct mwifiex_adapter *adapter)\n \t\tskb_put(skb, MAX_EVENT_SIZE);\n \n \t\tif (mwifiex_map_pci_memory(adapter, skb, MAX_EVENT_SIZE,\n-\t\t\t\t\t PCI_DMA_FROMDEVICE))\n+\t\t\t\t\t...
c
CWE-401
[ "drivers/net/wireless/marvell/mwifiex/pcie.c" ]
drivers/net/wireless/marvell/mwifiex/pcie.c
1
static struct scatterlist *alloc_sgtable(int size) if (new_page) __free_page(new_page); } return NULL; } alloc_size = min_t(int, size, PAGE_SIZE);
static struct scatterlist *alloc_sgtable(int size) if (new_page) __free_page(new_page); } kfree(table); return NULL; } alloc_size = min_t(int, size, PAGE_SIZE);
CVE-2019-19058
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/b4b814fec1a5a849383f7b3886b654a13abbda7d'}
nvd
A memory leak in the alloc_sgtable() function in drivers/net/wireless/intel/iwlwifi/fw/dbg.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering alloc_page() failures, aka CID-b4b814fec1a5.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b4b814fec1a5a849383f7b3886b654a13abbda7d
b4b814fec1a5a849383f7b3886b654a13abbda7d
SINGLE
['b4b814fec1a5a849383f7b3886b654a13abbda7d']
{'8188a18ee2e48c9a7461139838048363bfce3fef'}
b4b814fec1a5a849383f7b3886b654a13abbda7d
1
09/13/2019, 04:23:27
iwlwifi: dbg_ini: fix memory leak in alloc_sgtable In alloc_sgtable if alloc_page fails, the alocated table should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -646,6 +646,7 @@ static struct scatterlist *alloc_sgtable(int size)\n \t\t\t\tif (new_page)\n \t\t\t\t\t__free_page(new_page);\n \t\t\t}\n+\t\t\tkfree(table);\n \t\t\treturn NULL;\n \t\t}\n \t\talloc_size = min_t(int, size, PAGE_SIZE);", ...
c
CWE-401
[ "drivers/net/wireless/intel/iwlwifi/fw/dbg.c" ]
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
1
int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, /* allocate ucode sections in dram and set addresses */ ret = iwl_pcie_init_fw_sec(trans, fw, &prph_scratch->dram); if (ret) { dma_free_coherent(trans->dev, sizeof(*prph_scratch), prph_scratch, trans_pcie->prph_scratch_dma_addr); retur...
int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans, /* allocate ucode sections in dram and set addresses */ ret = iwl_pcie_init_fw_sec(trans, fw, &prph_scratch->dram); if (ret) goto err_free_prph_scratch; /* Allocate prph information * currently we don't assign to the prph info anything, but it would ...
CVE-2019-19059
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/0f4f199443faca715523b0659aa536251d8b978f'}
nvd
Multiple memory leaks in the iwl_pcie_ctxt_info_gen3_init() function in drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering iwl_pcie_init_fw_sec() or dma_alloc_coherent() failures, aka CID-0f4f199443f...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0f4f199443faca715523b0659aa536251d8b978f
0f4f199443faca715523b0659aa536251d8b978f
SINGLE
['0f4f199443faca715523b0659aa536251d8b978f']
{'b4b814fec1a5a849383f7b3886b654a13abbda7d'}
0f4f199443faca715523b0659aa536251d8b978f
1
09/27/2019, 20:56:04
iwlwifi: pcie: fix memory leaks in iwl_pcie_ctxt_info_gen3_init In iwl_pcie_ctxt_info_gen3_init there are cases that the allocated dma memory is leaked in case of error. DMA memories prph_scratch, prph_info, and ctxt_info_gen3 are allocated and initialized to be later assigned to trans_pcie. But in any error case bef...
Navid Emamdoost
null
{'additions': 25, 'deletions': 11, 'total': 36}
[ { "additions": 25, "changes": 36, "deletions": 11, "patch": "@@ -107,30 +107,30 @@ int iwl_pcie_ctxt_info_gen3_init(struct iwl_trans *trans,\n \n \t/* allocate ucode sections in dram and set addresses */\n \tret = iwl_pcie_init_fw_sec(trans, fw, &prph_scratch->dram);\n-\tif (ret) {\n-\t\tdma_free_co...
c
CWE-401
[ "drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c" ]
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c
1
int adis_update_scan_mode(struct iio_dev *indio_dev, return -ENOMEM; adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); if (!adis->buffer) return -ENOMEM; rx = adis->buffer; tx = rx + scan_count;
int adis_update_scan_mode(struct iio_dev *indio_dev, return -ENOMEM; adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); if (!adis->buffer) { kfree(adis->xfer); adis->xfer = NULL; return -ENOMEM; } rx = adis->buffer; tx = rx + scan_count;
CVE-2019-19060
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/ab612b1daf415b62c58e130cb3d0f30b255a14d0'}
nvd
A memory leak in the adis_update_scan_mode() function in drivers/iio/imu/adis_buffer.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption), aka CID-ab612b1daf41.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ab612b1daf415b62c58e130cb3d0f30b255a14d0
ab612b1daf415b62c58e130cb3d0f30b255a14d0
SINGLE
['ab612b1daf415b62c58e130cb3d0f30b255a14d0']
{'dcb10920179ab74caf88a6f2afadecfc2743b910'}
ab612b1daf415b62c58e130cb3d0f30b255a14d0
1
09/19/2019, 15:50:02
iio: imu: adis16400: release allocated memory on failure In adis_update_scan_mode, if allocation for adis->buffer fails, previously allocated adis->xfer needs to be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonat...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -78,8 +78,11 @@ int adis_update_scan_mode(struct iio_dev *indio_dev,\n \t\treturn -ENOMEM;\n \n \tadis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL);\n-\tif (!adis->buffer)\n+\tif (!adis->buffer) {\n+\t\tkfree(adis->xfer);\n+\t\t...
c
CWE-401
[ "drivers/iio/imu/adis_buffer.c" ]
drivers/iio/imu/adis_buffer.c
1
static int adis_update_scan_mode_burst(struct iio_dev *indio_dev, return -ENOMEM; adis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL); if (!adis->buffer) return -ENOMEM; tx = adis->buffer + burst_length; tx[0] = ADIS_READ_REG(adis->burst->reg_cmd);
static int adis_update_scan_mode_burst(struct iio_dev *indio_dev, return -ENOMEM; adis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL); if (!adis->buffer) { kfree(adis->xfer); adis->xfer = NULL; return -ENOMEM; } tx = adis->buffer + burst_length; tx[0] = ADIS_READ_REG(adis->burst->reg_cmd);
CVE-2019-19061
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/9c0530e898f384c5d279bfcebd8bb17af1105873'}
nvd
A memory leak in the adis_update_scan_mode_burst() function in drivers/iio/imu/adis_buffer.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption), aka CID-9c0530e898f3.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9c0530e898f384c5d279bfcebd8bb17af1105873
9c0530e898f384c5d279bfcebd8bb17af1105873
SINGLE
['9c0530e898f384c5d279bfcebd8bb17af1105873']
{'ab612b1daf415b62c58e130cb3d0f30b255a14d0'}
9c0530e898f384c5d279bfcebd8bb17af1105873
1
09/19/2019, 15:56:35
iio: imu: adis16400: fix memory leak In adis_update_scan_mode_burst, if adis->buffer allocation fails release the adis->xfer. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -35,8 +35,11 @@ static int adis_update_scan_mode_burst(struct iio_dev *indio_dev,\n \t\treturn -ENOMEM;\n \n \tadis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL);\n-\tif (!adis->buffer)\n+\tif (!adis->buffer) {\n+\t\tkfree(adis...
c
CWE-401
[ "drivers/iio/imu/adis_buffer.c" ]
drivers/iio/imu/adis_buffer.c
1
static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, drop_alg: crypto_mod_put(alg); if (err) return err; return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); }
static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, drop_alg: crypto_mod_put(alg); if (err) { kfree_skb(skb); return err; } return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); }
CVE-2019-19062
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/ffdde5932042600c6807d46c1550b28b0db6a3bc'}
nvd
A memory leak in the crypto_report() function in crypto/crypto_user_base.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering crypto_report_alg() failures, aka CID-ffdde5932042.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ffdde5932042600c6807d46c1550b28b0db6a3bc
ffdde5932042600c6807d46c1550b28b0db6a3bc
SINGLE
['ffdde5932042600c6807d46c1550b28b0db6a3bc']
{'64e7f852c47ce99f6c324c46d6a299a5a7ebead9'}
ffdde5932042600c6807d46c1550b28b0db6a3bc
1
10/04/2019, 19:29:16
crypto: user - fix memory leak in crypto_report In crypto_report, a new skb is created via nlmsg_new(). This skb should be released if crypto_report_alg() fails. Fixes: a38f7907b926 ("crypto: Add userspace configuration API") Cc: <stable@vger.kernel.org> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Sign...
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -213,8 +213,10 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,\n drop_alg:\n \tcrypto_mod_put(alg);\n \n-\tif (err)\n+\tif (err) {\n+\t\tkfree_skb(skb);\n \t\treturn err;\n+\t}\n \n \treturn nlmsg_unicast(net->...
c
CWE-401
[ "crypto/crypto_user_base.c" ]
crypto/crypto_user_base.c
1
int rtl_usb_probe(struct usb_interface *intf, rtlpriv->hw = hw; rtlpriv->usb_data = kcalloc(RTL_USB_MAX_RX_COUNT, sizeof(u32), GFP_KERNEL); if (!rtlpriv->usb_data) return -ENOMEM; /* this spin lock must be initialized early */ spin_lock_init(&rtlpriv->locks.usb_lock); int rtl_usb_probe(struct usb_inter...
int rtl_usb_probe(struct usb_interface *intf, rtlpriv->hw = hw; rtlpriv->usb_data = kcalloc(RTL_USB_MAX_RX_COUNT, sizeof(u32), GFP_KERNEL); if (!rtlpriv->usb_data) { ieee80211_free_hw(hw); return -ENOMEM; } /* this spin lock must be initialized early */ spin_lock_init(&rtlpriv->locks.usb_lock); int ...
CVE-2019-19063
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/3f93616951138a598d930dcaec40f2bfd9ce43bb'}
nvd
Two memory leaks in the rtl_usb_probe() function in drivers/net/wireless/realtek/rtlwifi/usb.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption), aka CID-3f9361695113.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/3f93616951138a598d930dcaec40f2bfd9ce43bb
3f93616951138a598d930dcaec40f2bfd9ce43bb
SINGLE
['3f93616951138a598d930dcaec40f2bfd9ce43bb']
{'6e7d59776311e181160d44ed3c73cc7e65def7f2'}
3f93616951138a598d930dcaec40f2bfd9ce43bb
1
09/25/2019, 01:20:21
rtlwifi: prevent memory leak in rtl_usb_probe In rtl_usb_probe if allocation for usb_data fails the allocated hw should be released. In addition the allocated rtlpriv->usb_data should be released on error handling path. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeau...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -1021,8 +1021,10 @@ int rtl_usb_probe(struct usb_interface *intf,\n \trtlpriv->hw = hw;\n \trtlpriv->usb_data = kcalloc(RTL_USB_MAX_RX_COUNT, sizeof(u32),\n \t\t\t\t GFP_KERNEL);\n-\tif (!rtlpriv->usb_data)\n+\tif (!rtlpriv->usb_data) {...
c
CWE-401
[ "drivers/net/wireless/realtek/rtlwifi/usb.c" ]
drivers/net/wireless/realtek/rtlwifi/usb.c
1
static int fsl_lpspi_probe(struct platform_device *pdev) ret = pm_runtime_get_sync(fsl_lpspi->dev); if (ret < 0) { dev_err(fsl_lpspi->dev, "failed to enable clock\n"); return ret; } temp = readl(fsl_lpspi->base + IMX7ULP_PARAM);
static int fsl_lpspi_probe(struct platform_device *pdev) ret = pm_runtime_get_sync(fsl_lpspi->dev); if (ret < 0) { dev_err(fsl_lpspi->dev, "failed to enable clock\n"); goto out_controller_put; } temp = readl(fsl_lpspi->base + IMX7ULP_PARAM);
CVE-2019-19064
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/057b8945f78f76d0b04eeb5c27cd9225e5e7ad86'}
nvd
** DISPUTED ** A memory leak in the fsl_lpspi_probe() function in drivers/spi/spi-fsl-lpspi.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering pm_runtime_get_sync() failures, aka CID-057b8945f78f. NOTE: third parties dispute the relevance of this becaus...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/057b8945f78f76d0b04eeb5c27cd9225e5e7ad86
057b8945f78f76d0b04eeb5c27cd9225e5e7ad86
SINGLE
['057b8945f78f76d0b04eeb5c27cd9225e5e7ad86']
{'d3b0ffa1d75d5305ebe34735598993afbb8a869d'}
057b8945f78f76d0b04eeb5c27cd9225e5e7ad86
1
09/30/2019, 03:46:01
spi: lpspi: fix memory leak in fsl_lpspi_probe In fsl_lpspi_probe an SPI controller is allocated either via spi_alloc_slave or spi_alloc_master. In all but one error cases this controller is put by going to error handling code. This commit fixes the case when pm_runtime_get_sync fails and it should go to the error han...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -938,7 +938,7 @@ static int fsl_lpspi_probe(struct platform_device *pdev)\n \tret = pm_runtime_get_sync(fsl_lpspi->dev);\n \tif (ret < 0) {\n \t\tdev_err(fsl_lpspi->dev, \"failed to enable clock\\n\");\n-\t\treturn ret;\n+\t\tgoto out_cont...
c
CWE-401
[ "drivers/spi/spi-fsl-lpspi.c" ]
drivers/spi/spi-fsl-lpspi.c
1
int sdma_init(struct hfi1_devdata *dd, u8 port) } ret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params); if (ret < 0) goto bail; dd->sdma_rht = tmp_sdma_rht; dd_dev_info(dd, "SDMA num_sdma: %u\n", dd->num_sdma);
int sdma_init(struct hfi1_devdata *dd, u8 port) } ret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params); if (ret < 0) { kfree(tmp_sdma_rht); goto bail; } dd->sdma_rht = tmp_sdma_rht; dd_dev_info(dd, "SDMA num_sdma: %u\n", dd->num_sdma);
CVE-2019-19065
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/34b3be18a04ecdc610aae4c48e5d1b799d8689f6'}
nvd
** DISPUTED ** A memory leak in the sdma_init() function in drivers/infiniband/hw/hfi1/sdma.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption) by triggering rhashtable_init() failures, aka CID-34b3be18a04e. NOTE: This has been disputed as not a vulnerability because "r...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/34b3be18a04ecdc610aae4c48e5d1b799d8689f6
34b3be18a04ecdc610aae4c48e5d1b799d8689f6
SINGLE
['34b3be18a04ecdc610aae4c48e5d1b799d8689f6']
{'390d3fdcae2da52755b31aa44fcf19ecb5a2488b'}
34b3be18a04ecdc610aae4c48e5d1b799d8689f6
1
09/25/2019, 14:45:42
RDMA/hfi1: Prevent memory leak in sdma_init In sdma_init if rhashtable_init fails the allocated memory for tmp_sdma_rht should be released. Fixes: 5a52a7acf7e2 ("IB/hfi1: NULL pointer dereference when freeing rhashtable") Link: https://lore.kernel.org/r/20190925144543.10141-1-navid.emamdoost@gmail.com Signed-off-by: ...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -1526,8 +1526,11 @@ int sdma_init(struct hfi1_devdata *dd, u8 port)\n \t}\n \n \tret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params);\n-\tif (ret < 0)\n+\tif (ret < 0) {\n+\t\tkfree(tmp_sdma_rht);\n \t\tgoto bail;\n+\t}\n+\n \tdd->sdma_r...
c
CWE-401
[ "drivers/infiniband/hw/hfi1/sdma.c" ]
drivers/infiniband/hw/hfi1/sdma.c
1
bfad_im_get_stats(struct Scsi_Host *shost) rc = bfa_port_get_stats(BFA_FCPORT(&bfad->bfa), fcstats, bfad_hcb_comp, &fcomp); spin_unlock_irqrestore(&bfad->bfad_lock, flags); if (rc != BFA_STATUS_OK) return NULL; wait_for_completion(&fcomp.comp);
bfad_im_get_stats(struct Scsi_Host *shost) rc = bfa_port_get_stats(BFA_FCPORT(&bfad->bfa), fcstats, bfad_hcb_comp, &fcomp); spin_unlock_irqrestore(&bfad->bfad_lock, flags); if (rc != BFA_STATUS_OK) { kfree(fcstats); return NULL; } wait_for_completion(&fcomp.comp);
CVE-2019-19066
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/0e62395da2bd5166d7c9e14cbc7503b256a34cb0'}
nvd
A memory leak in the bfad_im_get_stats() function in drivers/scsi/bfa/bfad_attr.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering bfa_port_get_stats() failures, aka CID-0e62395da2bd.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0e62395da2bd5166d7c9e14cbc7503b256a34cb0
0e62395da2bd5166d7c9e14cbc7503b256a34cb0
SINGLE
['0e62395da2bd5166d7c9e14cbc7503b256a34cb0']
{'69be9264e35c107a262bcda6909ca1bcb0b1524c'}
0e62395da2bd5166d7c9e14cbc7503b256a34cb0
1
09/10/2019, 23:44:15
scsi: bfa: release allocated memory in case of error In bfad_im_get_stats if bfa_port_get_stats fails, allocated memory needs to be released. Link: https://lore.kernel.org/r/20190910234417.22151-1-navid.emamdoost@gmail.com Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Martin K. Petersen <m...
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -275,8 +275,10 @@ bfad_im_get_stats(struct Scsi_Host *shost)\n \trc = bfa_port_get_stats(BFA_FCPORT(&bfad->bfa),\n \t\t\t\tfcstats, bfad_hcb_comp, &fcomp);\n \tspin_unlock_irqrestore(&bfad->bfad_lock, flags);\n-\tif (rc != BFA_STATUS_OK)\n...
c
CWE-401
[ "drivers/scsi/bfa/bfad_attr.c" ]
drivers/scsi/bfa/bfad_attr.c
1
static int acp_hw_init(void *handle) u32 val = 0; u32 count = 0; struct device *dev; struct i2s_platform_data *i2s_pdata; struct amdgpu_device *adev = (struct amdgpu_device *)handle; static int acp_hw_init(void *handle) adev->acp.acp_cell = kcalloc(ACP_DEVS, sizeof(struct mfd_cell), GFP_KERNEL); if (a...
static int acp_hw_init(void *handle) u32 val = 0; u32 count = 0; struct device *dev; struct i2s_platform_data *i2s_pdata = NULL; struct amdgpu_device *adev = (struct amdgpu_device *)handle; static int acp_hw_init(void *handle) adev->acp.acp_cell = kcalloc(ACP_DEVS, sizeof(struct mfd_cell), GFP_KERNEL); ...
CVE-2019-19067
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/57be09c6e8747bf48704136d9e3f92bfb93f5725'}
nvd
** DISPUTED ** Four memory leaks in the acp_hw_init() function in drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c in the Linux kernel before 5.3.8 allow attackers to cause a denial of service (memory consumption) by triggering mfd_add_hotplug_devices() or pm_genpd_add_device() failures, aka CID-57be09c6e874. NOTE: third partie...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/57be09c6e8747bf48704136d9e3f92bfb93f5725
57be09c6e8747bf48704136d9e3f92bfb93f5725
SINGLE
['57be09c6e8747bf48704136d9e3f92bfb93f5725']
{'815fb4c9d7da862a47c9d2a9765a4759826c5783'}
57be09c6e8747bf48704136d9e3f92bfb93f5725
1
10/02/2019, 03:46:07
drm/amdgpu: fix multiple memory leaks in acp_hw_init In acp_hw_init there are some allocations that needs to be released in case of failure: 1- adev->acp.acp_genpd should be released if any allocation attemp for adev->acp.acp_cell, adev->acp.acp_res or i2s_pdata fails. 2- all of those allocations should be released i...
Navid Emamdoost
null
{'additions': 22, 'deletions': 12, 'total': 34}
[ { "additions": 22, "changes": 34, "deletions": 12, "patch": "@@ -189,7 +189,7 @@ static int acp_hw_init(void *handle)\n \tu32 val = 0;\n \tu32 count = 0;\n \tstruct device *dev;\n-\tstruct i2s_platform_data *i2s_pdata;\n+\tstruct i2s_platform_data *i2s_pdata = NULL;\n \n \tstruct amdgpu_device *adev...
c
CWE-401
[ "drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c" ]
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
1
static int rtl8xxxu_submit_int_urb(struct ieee80211_hw *hw) ret = usb_submit_urb(urb, GFP_KERNEL); if (ret) { usb_unanchor_urb(urb); goto error; }
static int rtl8xxxu_submit_int_urb(struct ieee80211_hw *hw) ret = usb_submit_urb(urb, GFP_KERNEL); if (ret) { usb_unanchor_urb(urb); usb_free_urb(urb); goto error; }
CVE-2019-19068
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c'}
nvd
A memory leak in the rtl8xxxu_submit_int_urb() function in drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering usb_submit_urb() failures, aka CID-a2cdd07488e6.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c
a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c
SINGLE
['a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c']
{'ab8c31dd8c8accea11bd59075bca711579512adc'}
a2cdd07488e666aa93a49a3fc9c9b1299e27ef3c
1
09/20/2019, 03:00:41
rtl8xxxu: prevent leaking urb In rtl8xxxu_submit_int_urb if usb_submit_urb fails the allocated urb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Chris Chiu <chiu@endlessm.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -5444,6 +5444,7 @@ static int rtl8xxxu_submit_int_urb(struct ieee80211_hw *hw)\n \tret = usb_submit_urb(urb, GFP_KERNEL);\n \tif (ret) {\n \t\tusb_unanchor_urb(urb);\n+\t\tusb_free_urb(urb);\n \t\tgoto error;\n \t}", "path": "drivers/n...
c
CWE-401
[ "drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c" ]
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
1
static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf, FASTRPC_PHYS(buffer->phys), buffer->size); if (ret < 0) { dev_err(buffer->dev, "failed to get scatterlist from DMA API\n"); return -EINVAL; }
static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf, FASTRPC_PHYS(buffer->phys), buffer->size); if (ret < 0) { dev_err(buffer->dev, "failed to get scatterlist from DMA API\n"); kfree(a); return -EINVAL; }
CVE-2019-19069
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/fc739a058d99c9297ef6bfd923b809d85855b9a9'}
nvd
A memory leak in the fastrpc_dma_buf_attach() function in drivers/misc/fastrpc.c in the Linux kernel before 5.3.9 allows attackers to cause a denial of service (memory consumption) by triggering dma_get_sgtable() failures, aka CID-fc739a058d99.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fc739a058d99c9297ef6bfd923b809d85855b9a9
fc739a058d99c9297ef6bfd923b809d85855b9a9
SINGLE
['fc739a058d99c9297ef6bfd923b809d85855b9a9']
{'f8204f0ddd62966a0e79c2804963a21e3540dd82'}
fc739a058d99c9297ef6bfd923b809d85855b9a9
1
09/25/2019, 15:27:41
misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach In fastrpc_dma_buf_attach if dma_get_sgtable fails the allocated memory for a should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Link: https://lore.kernel.org/r/20190925152742.16258-1-navid.emamdoost@gmail.com Signed-off-by: Greg...
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -527,6 +527,7 @@ static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf,\n \t\t\t FASTRPC_PHYS(buffer->phys), buffer->size);\n \tif (ret < 0) {\n \t\tdev_err(buffer->dev, \"failed to get scatterlist from DMA API\\n\");\n+\t\tkfree(a...
c
CWE-401
[ "drivers/misc/fastrpc.c" ]
drivers/misc/fastrpc.c
1
static int spi_gpio_probe(struct platform_device *pdev) return -ENOMEM; status = devm_add_action_or_reset(&pdev->dev, spi_gpio_put, master); if (status) return status; if (of_id) status = spi_gpio_probe_dt(pdev, master);
static int spi_gpio_probe(struct platform_device *pdev) return -ENOMEM; status = devm_add_action_or_reset(&pdev->dev, spi_gpio_put, master); if (status) { spi_master_put(master); return status; } if (of_id) status = spi_gpio_probe_dt(pdev, master);
CVE-2019-19070
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/d3b0ffa1d75d5305ebe34735598993afbb8a869d'}
nvd
** DISPUTED ** A memory leak in the spi_gpio_probe() function in drivers/spi/spi-gpio.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering devm_add_action_or_reset() failures, aka CID-d3b0ffa1d75d. NOTE: third parties dispute the relevance of this because...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d3b0ffa1d75d5305ebe34735598993afbb8a869d
d3b0ffa1d75d5305ebe34735598993afbb8a869d
SINGLE
['d3b0ffa1d75d5305ebe34735598993afbb8a869d']
{'6b04e47b73f2a0d2c330cecca99f8e2cb8f85b34'}
d3b0ffa1d75d5305ebe34735598993afbb8a869d
1
09/30/2019, 20:52:40
spi: gpio: prevent memory leak in spi_gpio_probe In spi_gpio_probe an SPI master is allocated via spi_alloc_master, but this controller should be released if devm_add_action_or_reset fails, otherwise memory leaks. In order to avoid leak spi_contriller_put must be called in case of failure for devm_add_action_or_reset....
Navid Emamdoost
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -371,8 +371,10 @@ static int spi_gpio_probe(struct platform_device *pdev)\n \t\treturn -ENOMEM;\n \n \tstatus = devm_add_action_or_reset(&pdev->dev, spi_gpio_put, master);\n-\tif (status)\n+\tif (status) {\n+\t\tspi_master_put(master);\n \...
c
CWE-401
[ "drivers/spi/spi-gpio.c" ]
drivers/spi/spi-gpio.c
1
static int rsi_send_beacon(struct rsi_common *common) skb_pull(skb, (64 - dword_align_bytes)); if (rsi_prepare_beacon(common, skb)) { rsi_dbg(ERR_ZONE, "Failed to prepare beacon\n"); return -EINVAL; } skb_queue_tail(&common->tx_queue[MGMT_BEACON_Q], skb);
static int rsi_send_beacon(struct rsi_common *common) skb_pull(skb, (64 - dword_align_bytes)); if (rsi_prepare_beacon(common, skb)) { rsi_dbg(ERR_ZONE, "Failed to prepare beacon\n"); dev_kfree_skb(skb); return -EINVAL; } skb_queue_tail(&common->tx_queue[MGMT_BEACON_Q], skb);
CVE-2019-19071
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/d563131ef23cbc756026f839a82598c8445bc45f'}
nvd
A memory leak in the rsi_send_beacon() function in drivers/net/wireless/rsi/rsi_91x_mgmt.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering rsi_prepare_beacon() failures, aka CID-d563131ef23c.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d563131ef23cbc756026f839a82598c8445bc45f
d563131ef23cbc756026f839a82598c8445bc45f
SINGLE
['d563131ef23cbc756026f839a82598c8445bc45f']
{'0d32f5d93bbaeb57b607cb5cb1c67626d5754905'}
d563131ef23cbc756026f839a82598c8445bc45f
1
09/14/2019, 00:08:11
rsi: release skb if rsi_prepare_beacon fails In rsi_send_beacon, if rsi_prepare_beacon fails the allocated skb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1756,6 +1756,7 @@ static int rsi_send_beacon(struct rsi_common *common)\n \t\tskb_pull(skb, (64 - dword_align_bytes));\n \tif (rsi_prepare_beacon(common, skb)) {\n \t\trsi_dbg(ERR_ZONE, \"Failed to prepare beacon\\n\");\n+\t\tdev_kfree_sk...
c
CWE-401
[ "drivers/net/wireless/rsi/rsi_91x_mgmt.c" ]
drivers/net/wireless/rsi/rsi_91x_mgmt.c
1
predicate_parse(const char *str, int nr_parens, int nr_preds, switch (*next) { case '(': /* #2 */ if (top - op_stack > nr_parens) return ERR_PTR(-EINVAL); *(++top) = invert; continue; case '!': /* #3 */
predicate_parse(const char *str, int nr_parens, int nr_preds, switch (*next) { case '(': /* #2 */ if (top - op_stack > nr_parens) { ret = -EINVAL; goto out_free; } *(++top) = invert; continue; case '!': /* #3 */
CVE-2019-19072
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/96c5c6e6a5b6db592acae039fed54b5c8844cd35'}
nvd
A memory leak in the predicate_parse() function in kernel/trace/trace_events_filter.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption), aka CID-96c5c6e6a5b6.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/96c5c6e6a5b6db592acae039fed54b5c8844cd35
96c5c6e6a5b6db592acae039fed54b5c8844cd35
SINGLE
['96c5c6e6a5b6db592acae039fed54b5c8844cd35']
{'968e5170939662341242812b9c82ef51cf140a33'}
96c5c6e6a5b6db592acae039fed54b5c8844cd35
1
09/20/2019, 22:57:59
tracing: Have error path in predicate_parse() free its allocated memory In predicate_parse, there is an error path that is not going to out_free instead it returns directly which leads to a memory leak. Link: http://lkml.kernel.org/r/20190920225800.3870-1-navid.emamdoost@gmail.com Signed-off-by: Navid Emamdoost <nav...
Navid Emamdoost
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -452,8 +452,10 @@ predicate_parse(const char *str, int nr_parens, int nr_preds,\n \n \t\tswitch (*next) {\n \t\tcase '(':\t\t\t\t\t/* #2 */\n-\t\t\tif (top - op_stack > nr_parens)\n-\t\t\t\treturn ERR_PTR(-EINVAL);\n+\t\t\tif (top - op_sta...
c
CWE-401
[ "kernel/trace/trace_events_filter.c" ]
kernel/trace/trace_events_filter.c
1
static int htc_config_pipe_credits(struct htc_target *target) time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); if (!time_left) { dev_err(target->dev, "HTC credit config timeout\n"); return -ETIMEDOUT; } static int htc_setup_complete(struct htc_target *target) time_left = wait_for_completion_tim...
static int htc_config_pipe_credits(struct htc_target *target) time_left = wait_for_completion_timeout(&target->cmd_wait, HZ); if (!time_left) { dev_err(target->dev, "HTC credit config timeout\n"); kfree_skb(skb); return -ETIMEDOUT; } static int htc_setup_complete(struct htc_target *target) time_left = wait_...
CVE-2019-19073
{'CWE-401'}
2.9
{'https://github.com/torvalds/linux/commit/853acf7caf10b828102d92d05b5c101666a6142b'}
nvd
Memory leaks in drivers/net/wireless/ath/ath9k/htc_hst.c in the Linux kernel through 5.3.11 allow attackers to cause a denial of service (memory consumption) by triggering wait_for_completion_timeout() failures. This affects the htc_config_pipe_credits() function, the htc_setup_complete() function, and the htc_connect_...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/853acf7caf10b828102d92d05b5c101666a6142b
853acf7caf10b828102d92d05b5c101666a6142b
SINGLE
['853acf7caf10b828102d92d05b5c101666a6142b']
{'45f09a1c5b8584334899121d4b33a4aebe05e068'}
853acf7caf10b828102d92d05b5c101666a6142b
1
09/06/2019, 18:26:03
ath9k_htc: release allocated buffer if timed out In htc_config_pipe_credits, htc_setup_complete, and htc_connect_service if time out happens, the allocated buffer needs to be released. Otherwise there will be memory leak. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@code...
Navid Emamdoost
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -170,6 +170,7 @@ static int htc_config_pipe_credits(struct htc_target *target)\n \ttime_left = wait_for_completion_timeout(&target->cmd_wait, HZ);\n \tif (!time_left) {\n \t\tdev_err(target->dev, \"HTC credit config timeout\\n\");\n+\t\tkf...
c
CWE-401
[ "drivers/net/wireless/ath/ath9k/htc_hst.c" ]
drivers/net/wireless/ath/ath9k/htc_hst.c
1
int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id, ath_dbg(common, WMI, "Timeout waiting for WMI command: %s\n", wmi_cmd_to_name(cmd_id)); mutex_unlock(&wmi->op_mutex); return -ETIMEDOUT; }
int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id, ath_dbg(common, WMI, "Timeout waiting for WMI command: %s\n", wmi_cmd_to_name(cmd_id)); mutex_unlock(&wmi->op_mutex); kfree_skb(skb); return -ETIMEDOUT; }
CVE-2019-19074
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/728c1e2a05e4b5fc52fab3421dce772a806612a2'}
nvd
A memory leak in the ath9k_wmi_cmd() function in drivers/net/wireless/ath/ath9k/wmi.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption), aka CID-728c1e2a05e4.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/728c1e2a05e4b5fc52fab3421dce772a806612a2
728c1e2a05e4b5fc52fab3421dce772a806612a2
SINGLE
['728c1e2a05e4b5fc52fab3421dce772a806612a2']
{'853acf7caf10b828102d92d05b5c101666a6142b'}
728c1e2a05e4b5fc52fab3421dce772a806612a2
1
09/06/2019, 18:59:30
ath9k: release allocated buffer if timed out In ath9k_wmi_cmd, the allocated network buffer needs to be released if timeout happens. Otherwise memory will be leaked. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -336,6 +336,7 @@ int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id,\n \t\tath_dbg(common, WMI, \"Timeout waiting for WMI command: %s\\n\",\n \t\t\twmi_cmd_to_name(cmd_id));\n \t\tmutex_unlock(&wmi->op_mutex);\n+\t\tkfree_skb(skb);\...
c
CWE-401
[ "drivers/net/wireless/ath/ath9k/wmi.c" ]
drivers/net/wireless/ath/ath9k/wmi.c
1
static int ca8210_probe(struct spi_device *spi_device) goto error; } ret = ca8210_get_platform_data(priv->spi, pdata); if (ret) { dev_crit(&spi_device->dev, "ca8210_get_platform_data failed\n"); goto error; } priv->spi->dev.platform_data = pdata; ret = ca8210_dev_com_init(priv); if (ret) {
static int ca8210_probe(struct spi_device *spi_device) goto error; } priv->spi->dev.platform_data = pdata; ret = ca8210_get_platform_data(priv->spi, pdata); if (ret) { dev_crit(&spi_device->dev, "ca8210_get_platform_data failed\n"); goto error; } ret = ca8210_dev_com_init(priv); if (ret) {
CVE-2019-19075
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/6402939ec86eaf226c8b8ae00ed983936b164908'}
nvd
A memory leak in the ca8210_probe() function in drivers/net/ieee802154/ca8210.c in the Linux kernel before 5.3.8 allows attackers to cause a denial of service (memory consumption) by triggering ca8210_get_platform_data() failures, aka CID-6402939ec86e.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6402939ec86eaf226c8b8ae00ed983936b164908
6402939ec86eaf226c8b8ae00ed983936b164908
SINGLE
['6402939ec86eaf226c8b8ae00ed983936b164908']
{'21a045e430e56725628f361dede8a882e92469b9'}
6402939ec86eaf226c8b8ae00ed983936b164908
1
09/17/2019, 22:47:12
ieee802154: ca8210: prevent memory leak In ca8210_probe the allocated pdata needs to be assigned to spi_device->dev.platform_data before calling ca8210_get_platform_data. Othrwise when ca8210_get_platform_data fails pdata cannot be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Link: https://lor...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -3152,12 +3152,12 @@ static int ca8210_probe(struct spi_device *spi_device)\n \t\tgoto error;\n \t}\n \n+\tpriv->spi->dev.platform_data = pdata;\n \tret = ca8210_get_platform_data(priv->spi, pdata);\n \tif (ret) {\n \t\tdev_crit(&spi_devic...
c
CWE-401
[ "drivers/net/ieee802154/ca8210.c" ]
drivers/net/ieee802154/ca8210.c
1
nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, u8 mask, val; int err; if (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack)) goto err_delete; tos_off = proto == htons(ETH_P_IP) ? 16 : 20; nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, if ((iter->val & cmask) == (val & cmask) && ...
nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, u8 mask, val; int err; if (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack)) { err = -EOPNOTSUPP; goto err_delete; } tos_off = proto == htons(ETH_P_IP) ? 16 : 20; nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, if ((iter->val & cmask) ...
CVE-2019-19076
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/78beef629fd95be4ed853b2d37b832f766bd96ca'}
nvd
** DISPUTED ** A memory leak in the nfp_abm_u32_knode_replace() function in drivers/net/ethernet/netronome/nfp/abm/cls.c in the Linux kernel before 5.3.6 allows attackers to cause a denial of service (memory consumption), aka CID-78beef629fd9. NOTE: This has been argued as not a valid vulnerability. The upstream commit...
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/78beef629fd95be4ed853b2d37b832f766bd96ca
78beef629fd95be4ed853b2d37b832f766bd96ca
SINGLE
['78beef629fd95be4ed853b2d37b832f766bd96ca']
{'a41e8a88b06ee39fad4cb4a8ccf822563560a89c'}
78beef629fd95be4ed853b2d37b832f766bd96ca
1
09/27/2019, 01:51:46
nfp: abm: fix memory leak in nfp_abm_u32_knode_replace In nfp_abm_u32_knode_replace if the allocation for match fails it should go to the error handling instead of returning. Updated other gotos to have correct errno returned, too. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: David S. Mil...
Navid Emamdoost
null
{'additions': 10, 'deletions': 4, 'total': 14}
[ { "additions": 10, "changes": 14, "deletions": 4, "patch": "@@ -176,8 +176,10 @@ nfp_abm_u32_knode_replace(struct nfp_abm_link *alink,\n \tu8 mask, val;\n \tint err;\n \n-\tif (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack))\n+\tif (!nfp_abm_u32_check_knode(alink->abm, knode, proto, exta...
c
CWE-401
[ "drivers/net/ethernet/netronome/nfp/abm/cls.c" ]
drivers/net/ethernet/netronome/nfp/abm/cls.c
1
int bnxt_re_create_srq(struct ib_srq *ib_srq, dev_err(rdev_to_dev(rdev), "SRQ copy to udata failed!"); bnxt_qplib_destroy_srq(&rdev->qplib_res, &srq->qplib_srq); goto exit; } } if (nq)
int bnxt_re_create_srq(struct ib_srq *ib_srq, dev_err(rdev_to_dev(rdev), "SRQ copy to udata failed!"); bnxt_qplib_destroy_srq(&rdev->qplib_res, &srq->qplib_srq); goto fail; } } if (nq)
CVE-2019-19077
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/4a9d46a9fe14401f21df69cea97c62396d5fb053'}
nvd
A memory leak in the bnxt_re_create_srq() function in drivers/infiniband/hw/bnxt_re/ib_verbs.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering copy to udata failures, aka CID-4a9d46a9fe14.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4a9d46a9fe14401f21df69cea97c62396d5fb053
4a9d46a9fe14401f21df69cea97c62396d5fb053
SINGLE
['4a9d46a9fe14401f21df69cea97c62396d5fb053']
{'2ac5a6d3a917755919d97c89f8aa74e4ed958557'}
4a9d46a9fe14401f21df69cea97c62396d5fb053
1
09/10/2019, 22:21:19
RDMA: Fix goto target to release the allocated memory In bnxt_re_create_srq(), when ib_copy_to_udata() fails allocated memory should be released by goto fail. Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters") Link: https://lore.kernel.org/r/20190910222120.16517-1-navid.emamdoost@gmail.com Si...
Navid Emamdoost
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1398,7 +1398,7 @@ int bnxt_re_create_srq(struct ib_srq *ib_srq,\n \t\t\tdev_err(rdev_to_dev(rdev), \"SRQ copy to udata failed!\");\n \t\t\tbnxt_qplib_destroy_srq(&rdev->qplib_res,\n \t\t\t\t\t &srq->qplib_srq);\n-\t\t\tgoto exit;\n+...
c
CWE-401
[ "drivers/infiniband/hw/bnxt_re/ib_verbs.c" ]
drivers/infiniband/hw/bnxt_re/ib_verbs.c
1
static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id, ath10k_dbg(ar, ATH10K_DBG_USB_BULK, "usb bulk transmit failed: %d\n", ret); usb_unanchor_urb(urb); ret = -EINVAL; goto err_free_urb_to_pipe; }
static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id, ath10k_dbg(ar, ATH10K_DBG_USB_BULK, "usb bulk transmit failed: %d\n", ret); usb_unanchor_urb(urb); usb_free_urb(urb); ret = -EINVAL; goto err_free_urb_to_pipe; }
CVE-2019-19078
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/b8d17e7d93d2beb89e4f34c59996376b8b544792'}
nvd
A memory leak in the ath10k_usb_hif_tx_sg() function in drivers/net/wireless/ath/ath10k/usb.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering usb_submit_urb() failures, aka CID-b8d17e7d93d2.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b8d17e7d93d2beb89e4f34c59996376b8b544792
b8d17e7d93d2beb89e4f34c59996376b8b544792
SINGLE
['b8d17e7d93d2beb89e4f34c59996376b8b544792']
{'35cc054d944e8c9a7e9a31f32bbf360feb01a301'}
b8d17e7d93d2beb89e4f34c59996376b8b544792
1
09/20/2019, 01:36:26
ath10k: fix memory leak In ath10k_usb_hif_tx_sg the allocated urb should be released if usb_submit_urb fails. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Navid Emamdoost
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -435,6 +435,7 @@ static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id,\n \t\t\tath10k_dbg(ar, ATH10K_DBG_USB_BULK,\n \t\t\t\t \"usb bulk transmit failed: %d\\n\", ret);\n \t\t\tusb_unanchor_urb(urb);\n+\t\t\tusb_free_urb(urb);\n...
c
CWE-401
[ "drivers/net/wireless/ath/ath10k/usb.c" ]
drivers/net/wireless/ath/ath10k/usb.c
1
static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from) if (!kbuf) return -ENOMEM; if (!copy_from_iter_full(kbuf, len, from)) return -EFAULT; ret = qrtr_endpoint_post(&tun->ep, kbuf, len); return ret < 0 ? ret : len; }
static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from) if (!kbuf) return -ENOMEM; if (!copy_from_iter_full(kbuf, len, from)) { kfree(kbuf); return -EFAULT; } ret = qrtr_endpoint_post(&tun->ep, kbuf, len); kfree(kbuf); return ret < 0 ? ret : len; }
CVE-2019-19079
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/a21b7f0cff1906a93a0130b74713b15a0b36481d'}
nvd
A memory leak in the qrtr_tun_write_iter() function in net/qrtr/tun.c in the Linux kernel before 5.3 allows attackers to cause a denial of service (memory consumption), aka CID-a21b7f0cff19.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a21b7f0cff1906a93a0130b74713b15a0b36481d
a21b7f0cff1906a93a0130b74713b15a0b36481d
SINGLE
['a21b7f0cff1906a93a0130b74713b15a0b36481d']
{'10cc514f451a0f239aa34f91bc9dc954a9397840'}
a21b7f0cff1906a93a0130b74713b15a0b36481d
1
09/11/2019, 15:09:02
net: qrtr: fix memort leak in qrtr_tun_write_iter In qrtr_tun_write_iter the allocated kbuf should be release in case of error or success return. v2 Update: Thanks to David Miller for pointing out the release on success path as well. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: David S. ...
Navid Emamdoost
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -84,11 +84,14 @@ static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from)\n \tif (!kbuf)\n \t\treturn -ENOMEM;\n \n-\tif (!copy_from_iter_full(kbuf, len, from))\n+\tif (!copy_from_iter_full(kbuf, len, from)) {\n+\t\tkf...
c
CWE-401
[ "net/qrtr/tun.c" ]
net/qrtr/tun.c
1
nfp_flower_spawn_phy_reprs(struct nfp_app *app, struct nfp_flower_priv *priv) repr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL); if (!repr_priv) { err = -ENOMEM; goto err_reprs_clean; } nfp_flower_spawn_phy_reprs(struct nfp_app *app, struct nfp_flower_priv *priv) port = nfp_port_alloc(app, NFP_PORT_PH...
nfp_flower_spawn_phy_reprs(struct nfp_app *app, struct nfp_flower_priv *priv) repr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL); if (!repr_priv) { err = -ENOMEM; nfp_repr_free(repr); goto err_reprs_clean; } nfp_flower_spawn_phy_reprs(struct nfp_app *app, struct nfp_flower_priv *priv) port = nfp_por...
CVE-2019-19080
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/8572cea1461a006bce1d06c0c4b0575869125fa4'}
nvd
Four memory leaks in the nfp_flower_spawn_phy_reprs() function in drivers/net/ethernet/netronome/nfp/flower/main.c in the Linux kernel before 5.3.4 allow attackers to cause a denial of service (memory consumption), aka CID-8572cea1461a.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/8572cea1461a006bce1d06c0c4b0575869125fa4
8572cea1461a006bce1d06c0c4b0575869125fa4
SINGLE
['8572cea1461a006bce1d06c0c4b0575869125fa4']
{'dfe5999dc03e321d08190772c98843284d5cf419'}
8572cea1461a006bce1d06c0c4b0575869125fa4
1
09/25/2019, 18:24:02
nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs In nfp_flower_spawn_phy_reprs, in the for loop over eth_tbl if any of intermediate allocations or initializations fail memory is leaked. requiered releases are added. Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload") Signed-of...
Navid Emamdoost
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -515,6 +515,7 @@ nfp_flower_spawn_phy_reprs(struct nfp_app *app, struct nfp_flower_priv *priv)\n \t\trepr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL);\n \t\tif (!repr_priv) {\n \t\t\terr = -ENOMEM;\n+\t\t\tnfp_repr_free(repr);\n \t\t\tg...
c
CWE-401
[ "drivers/net/ethernet/netronome/nfp/flower/main.c" ]
drivers/net/ethernet/netronome/nfp/flower/main.c
1
nfp_flower_spawn_vnic_reprs(struct nfp_app *app, repr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL); if (!repr_priv) { err = -ENOMEM; goto err_reprs_clean; } nfp_flower_spawn_vnic_reprs(struct nfp_app *app, port = nfp_port_alloc(app, port_type, repr); if (IS_ERR(port)) { err = PTR_ERR(port); nf...
nfp_flower_spawn_vnic_reprs(struct nfp_app *app, repr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL); if (!repr_priv) { err = -ENOMEM; nfp_repr_free(repr); goto err_reprs_clean; } nfp_flower_spawn_vnic_reprs(struct nfp_app *app, port = nfp_port_alloc(app, port_type, repr); if (IS_ERR(port)) { er...
CVE-2019-19081
{'CWE-401'}
6.9
{'https://github.com/torvalds/linux/commit/8ce39eb5a67aee25d9f05b40b673c95b23502e3e'}
nvd
A memory leak in the nfp_flower_spawn_vnic_reprs() function in drivers/net/ethernet/netronome/nfp/flower/main.c in the Linux kernel before 5.3.4 allows attackers to cause a denial of service (memory consumption), aka CID-8ce39eb5a67a.
2019-11-18
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/8ce39eb5a67aee25d9f05b40b673c95b23502e3e
8ce39eb5a67aee25d9f05b40b673c95b23502e3e
SINGLE
['8ce39eb5a67aee25d9f05b40b673c95b23502e3e']
{'8572cea1461a006bce1d06c0c4b0575869125fa4'}
8ce39eb5a67aee25d9f05b40b673c95b23502e3e
1
09/25/2019, 19:05:09
nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs In nfp_flower_spawn_vnic_reprs in the loop if initialization or the allocations fail memory is leaked. Appropriate releases are added. Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload") Signed-off-by: Navid Emamdoost <navid.emamdo...
Navid Emamdoost
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -400,6 +400,7 @@ nfp_flower_spawn_vnic_reprs(struct nfp_app *app,\n \t\trepr_priv = kzalloc(sizeof(*repr_priv), GFP_KERNEL);\n \t\tif (!repr_priv) {\n \t\t\terr = -ENOMEM;\n+\t\t\tnfp_repr_free(repr);\n \t\t\tgoto err_reprs_clean;\n \t\t}\...
c
CWE-401
[ "drivers/net/ethernet/netronome/nfp/flower/main.c" ]
drivers/net/ethernet/netronome/nfp/flower/main.c
1
archive_wstring_append_from_mbs(struct archive_wstring *dest, * No single byte will be more than one wide character, * so this length estimate will always be big enough. */ size_t wcs_length = len; size_t mbs_length = len; const char *mbs = p; wchar_t *wcs; archive_wstring_append_from_mbs(struct archive_wstr...
archive_wstring_append_from_mbs(struct archive_wstring *dest, * No single byte will be more than one wide character, * so this length estimate will always be big enough. */ // size_t wcs_length = len; size_t mbs_length = len; const char *mbs = p; wchar_t *wcs; archive_wstring_append_from_mbs(struct archive_w...
CVE-2019-19221
{'CWE-125'}
2.9
{'https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41'}
nvd
In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.
2019-11-21
1
https://github.com/libarchive/libarchive
https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41
22b1db9d46654afc6f0c28f90af8cdc84a199f41
SINGLE
['22b1db9d46654afc6f0c28f90af8cdc84a199f41']
{'dc064872521cacc46c566ddc96f5609752c745ad'}
22b1db9d46654afc6f0c28f90af8cdc84a199f41
1
11/21/2019, 02:08:40
Bugfix and optimize archive_wstring_append_from_mbs() The cal to mbrtowc() or mbtowc() should read up to mbs_length bytes and not wcs_length. This avoids out-of-bounds reads. mbrtowc() and mbtowc() return (size_t)-1 wit errno EILSEQ when they encounter an invalid multibyte character and (size_t)-2 when they they enco...
Martin Matuska
null
{'additions': 17, 'deletions': 11, 'total': 28}
[ { "additions": 17, "changes": 28, "deletions": 11, "patch": "@@ -591,7 +591,7 @@ archive_wstring_append_from_mbs(struct archive_wstring *dest,\n \t * No single byte will be more than one wide character,\n \t * so this length estimate will always be big enough.\n \t */\n-\tsize_t wcs_length = len;\n+...
c
CWE-125
[ "libarchive/archive_string.c" ]
libarchive/archive_string.c
1
str_lower_case_match(OnigEncoding enc, int case_fold_flag, lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, end, lowbuf); q = lowbuf; while (lowlen > 0) { if (*t++ != *q++) return 0; lowlen--; }
str_lower_case_match(OnigEncoding enc, int case_fold_flag, lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, end, lowbuf); q = lowbuf; while (lowlen > 0) { if (t >= tend) return 0; if (*t++ != *q++) return 0; lowlen--; }
CVE-2019-19246
{'CWE-125'}
2.9
{'https://github.com/kkos/oniguruma/commit/d3e402928b6eb3327f8f7d59a9edfa622fec557b'}
nvd
Oniguruma through 6.9.3, as used in PHP 7.3.x and other products, has a heap-based buffer over-read in str_lower_case_match in regexec.c.
2019-11-25
1
https://github.com/kkos/oniguruma
https://github.com/kkos/oniguruma/commit/d3e402928b6eb3327f8f7d59a9edfa622fec557b
d3e402928b6eb3327f8f7d59a9edfa622fec557b
SINGLE
['d3e402928b6eb3327f8f7d59a9edfa622fec557b']
{'fdbbb884e43b7fb68a62bfd6f1f503af67c8b483'}
d3e402928b6eb3327f8f7d59a9edfa622fec557b
1
08/13/2019, 04:37:30
fix heap-buffer-overflow
K.Kosako
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -4196,6 +4196,7 @@ str_lower_case_match(OnigEncoding enc, int case_fold_flag,\n lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, end, lowbuf);\n q = lowbuf;\n while (lowlen > 0) {\n+ if (t >= tend) return 0;\n ...
c
CWE-125
[ "src/regexec.c" ]
src/regexec.c
1
lyp_precompile_pattern(struct ly_ctx *ctx, const char *pattern, pcre** pcre_cmp, * @param[in] data2 If \p type is #LY_TYPE_BITS: (int *) type bit field length, * #LY_TYPE_DEC64: (uint8_t *) number of fraction digits (position of the floating point), * ot...
lyp_precompile_pattern(struct ly_ctx *ctx, const char *pattern, pcre** pcre_cmp, * @param[in] data2 If \p type is #LY_TYPE_BITS: (int *) type bit field length, * #LY_TYPE_DEC64: (uint8_t *) number of fraction digits (position of the floating point), * ot...
CVE-2019-19333
{'CWE-787'}
6.4
{'https://github.com/CESNET/libyang/commit/f6d684ade99dd37b21babaa8a856f64faa1e2e0d'}
nvd
In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "bits". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or possibly ga...
2019-12-06
1
https://github.com/CESNET/libyang
https://github.com/CESNET/libyang/commit/f6d684ade99dd37b21babaa8a856f64faa1e2e0d
f6d684ade99dd37b21babaa8a856f64faa1e2e0d
SINGLE
['f6d684ade99dd37b21babaa8a856f64faa1e2e0d']
{'9c3ee622f812129620f78d0c4a9909c54d47f63e'}
f6d684ade99dd37b21babaa8a856f64faa1e2e0d
1
12/04/2019, 09:59:04
parser BUGFIX long identity name buffer overflow STRING_OVERFLOW (CWE-120)
Michal Vasko
null
{'additions': 57, 'deletions': 23, 'total': 80}
[ { "additions": 57, "changes": 80, "deletions": 23, "patch": "@@ -979,7 +979,7 @@ lyp_precompile_pattern(struct ly_ctx *ctx, const char *pattern, pcre** pcre_cmp,\n * @param[in] data2 If \\p type is #LY_TYPE_BITS: (int *) type bit field length,\n * #LY_TYPE_DEC64: (ui...
c
CWE-787
[ "src/parser.c" ]
src/parser.c
1
make_canonical(struct ly_ctx *ctx, int type, const char **value, void *data1, vo module_name = (const char *)data1; /* identity must always have a prefix */ if (!strchr(*value, ':')) { sprintf(buf, "%s:%s", module_name, *value); } else { strcpy(buf, *value); ...
make_canonical(struct ly_ctx *ctx, int type, const char **value, void *data1, vo module_name = (const char *)data1; /* identity must always have a prefix */ if (!strchr(*value, ':')) { LY_CHECK_ERR_RETURN(strlen(module_name) + 1 + strlen(*value) > buf_len, LOGBUF(*value), -1); ...
CVE-2019-19334
{'CWE-787'}
6.4
{'https://github.com/CESNET/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6'}
nvd
In all versions of libyang before 1.0-r5, a stack-based buffer overflow was discovered in the way libyang parses YANG files with a leaf of type "identityref". An application that uses libyang to parse untrusted YANG files may be vulnerable to this flaw, which would allow an attacker to cause a denial of service or poss...
2019-12-06
1
https://github.com/CESNET/libyang
https://github.com/CESNET/libyang/commit/6980afae2ff9fcd6d67508b0a3f694d75fd059d6
6980afae2ff9fcd6d67508b0a3f694d75fd059d6
SINGLE
['6980afae2ff9fcd6d67508b0a3f694d75fd059d6']
{'f6d684ade99dd37b21babaa8a856f64faa1e2e0d'}
6980afae2ff9fcd6d67508b0a3f694d75fd059d6
1
12/04/2019, 10:00:33
parser BUGFIX long identityref default value buffer overflow STRING_OVERFLOW (CWE-120)
Michal Vasko
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1021,8 +1021,10 @@ make_canonical(struct ly_ctx *ctx, int type, const char **value, void *data1, vo\n module_name = (const char *)data1;\n /* identity must always have a prefix */\n if (!strchr(*value, ':')) {\n+ ...
c
CWE-787
[ "src/parser.c" ]
src/parser.c
1
echo "</script>"; //start the html form if (strlen(check_str($_GET['redirect'])) > 0) { echo "<form method='get' action='" . $_GET['redirect'] . ".php'>\n"; } else { echo "<form method='get' action='xml_cdr.php'>\n"; //include footer require_once "resources/footer.php"; ?>\ No newline at end of file
echo "</script>"; //start the html form if ($_GET['redirect'] == 'xml_cdr_statistics') { echo "<form method='get' action='xml_cdr_statistics.php'>\n"; } else { echo "<form method='get' action='xml_cdr.php'>\n"; //include footer require_once "resources/footer.php"; \ No newline at end of file ?>
CVE-2019-19366
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/f3047c83f3022a4780dca95ed7bccbf3a6fa868e'}
nvd
A cross-site scripting (XSS) vulnerability in app/xml_cdr/xml_cdr_search.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the redirect parameter.
2019-11-27
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/f3047c83f3022a4780dca95ed7bccbf3a6fa868e
f3047c83f3022a4780dca95ed7bccbf3a6fa868e
SINGLE
['f3047c83f3022a4780dca95ed7bccbf3a6fa868e']
{'f799692b1e04d708650decb51c1828350194bec9'}
f3047c83f3022a4780dca95ed7bccbf3a6fa868e
1
11/20/2019, 15:19:44
Update xml_cdr_search.php
Nate
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -59,8 +59,8 @@\n \techo \"</script>\";\n \n //start the html form\n-\tif (strlen(check_str($_GET['redirect'])) > 0) {\n-\t\techo \"<form method='get' action='\" . $_GET['redirect'] . \".php'>\\n\";\n+\tif ($_GET['redirect'] == 'xml_cdr_sta...
php
CWE-79
[ "app/xml_cdr/xml_cdr_search.php" ]
app/xml_cdr/xml_cdr_search.php
1
//prepare to page the results $rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; $param = "&id=".$_GET['id']."&box=".$_GET['box']."&order_by=".$_GET['order_by']."&order=".$_GET['order']; $page = $_GET['page']; if (strlen($page) == 0) { $page = 0; $_G...
//prepare to page the results $rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; $param = "&id=".$fax_uuid."&box=".$_GET['box']."&order_by=".$_GET['order_by']."&order=".$_GET['order']; $page = $_GET['page']; if (strlen($page) == 0) { $page = 0; $_GET...
CVE-2019-19367
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/72a5ce4d2d6bc0ec0e72bbfb76487e4761f292c5'}
nvd
A cross-site scripting (XSS) vulnerability in app/fax/fax_files.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the id parameter.
2019-11-27
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/72a5ce4d2d6bc0ec0e72bbfb76487e4761f292c5
72a5ce4d2d6bc0ec0e72bbfb76487e4761f292c5
SINGLE
['72a5ce4d2d6bc0ec0e72bbfb76487e4761f292c5']
{'f3047c83f3022a4780dca95ed7bccbf3a6fa868e'}
72a5ce4d2d6bc0ec0e72bbfb76487e4761f292c5
1
11/20/2019, 16:05:10
Update fax_files.php
FusionPBX
null
{'additions': 10, 'deletions': 10, 'total': 20}
[ { "additions": 10, "changes": 20, "deletions": 10, "patch": "@@ -183,7 +183,7 @@\n \n //prepare to page the results\n \t$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;\n-\t$param = \"&id=\".$_GET['id'].\"&box=\".$_GET['box'].\"&order...
php
CWE-79
[ "app/fax/fax_files.php" ]
app/fax/fax_files.php
1
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): $language = new text; $text = $language->get(); //get ids $fax_log_uuid = $_REQUEST["id"]; ...
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): $language = new text; $text = $language->get(); //validate the uuids if (is_uuid($_REQUEST["...
CVE-2019-19384
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/aea1abaeb12f69dc22967395c528fb2434e316c1'}
nvd
A cross-site scripting (XSS) vulnerability in app/fax/fax_log_view.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the fax_uuid parameter.
2019-11-29
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/aea1abaeb12f69dc22967395c528fb2434e316c1
aea1abaeb12f69dc22967395c528fb2434e316c1
SINGLE
['aea1abaeb12f69dc22967395c528fb2434e316c1']
{'9e837fadecdd5199819a949b5b1bd84b19f716f2'}
aea1abaeb12f69dc22967395c528fb2434e316c1
1
11/28/2019, 10:15:03
Update fax_log_view.php
FusionPBX
null
{'additions': 26, 'deletions': 22, 'total': 48}
[ { "additions": 26, "changes": 48, "deletions": 22, "patch": "@@ -17,7 +17,7 @@\n \n \tThe Initial Developer of the Original Code is\n \tMark J Crane <markjcrane@fusionpbx.com>\n-\tPortions created by the Initial Developer are Copyright (C) 2008-2018\n+\tPortions created by the Initial Developer are ...
php
CWE-79
[ "app/fax/fax_log_view.php" ]
app/fax/fax_log_view.php
1
//get posted data if (is_array($_POST['dialplans'])) { $app_uuid = $_POST['app_uuid']; $action = $_POST['action']; $dialplans = $_POST['dialplans']; $search = $_POST['search']; $order_by = $_POST['order_by']; $order = $_POST['order']; } //process action if ($action && is_array($dialplans) && @sizeof($...
//get posted data if (is_array($_POST['dialplans'])) { $action = $_POST['action']; $dialplans = $_POST['dialplans']; $search = $_POST['search']; $order_by = $_POST['order_by']; $order = $_POST['order']; } //get the app uuid if (is_uuid($_REQUEST["app_uuid"])) { $app_uuid = $_REQUEST["app_uuid"]; } /...
CVE-2019-19385
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/fe504b83db80ebae30c982770f0f0b200b88cbe9'}
nvd
A cross-site scripting (XSS) vulnerability in app/dialplans/dialplans.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the app_uuid parameter.
2019-11-29
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/fe504b83db80ebae30c982770f0f0b200b88cbe9
fe504b83db80ebae30c982770f0f0b200b88cbe9
SINGLE
['fe504b83db80ebae30c982770f0f0b200b88cbe9']
{'44edbfe7a7e256d1b80448026617365a40c92c61'}
fe504b83db80ebae30c982770f0f0b200b88cbe9
1
11/28/2019, 09:30:09
Update dialplans.php
FusionPBX
null
{'additions': 11, 'deletions': 8, 'total': 19}
[ { "additions": 11, "changes": 19, "deletions": 8, "patch": "@@ -45,14 +45,18 @@\n \n //get posted data\n \tif (is_array($_POST['dialplans'])) {\n-\t\t$app_uuid = $_POST['app_uuid'];\n \t\t$action = $_POST['action'];\n \t\t$dialplans = $_POST['dialplans'];\n \t\t$search = $_POST['search'];\n \t\t$ord...
php
CWE-79
[ "app/dialplans/dialplans.php" ]
app/dialplans/dialplans.php
1
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): $language = new text; $text = $language->get(); //get greeting id if (is_uuid($_REQUEST["id"...
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): $language = new text; $text = $language->get(); //validate the uuids if (is_uuid($_REQUEST["...
CVE-2019-19386
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/9e837fadecdd5199819a949b5b1bd84b19f716f2'}
nvd
A cross-site scripting (XSS) vulnerability in app/voicemail_greetings/voicemail_greeting_edit.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the id and/or voicemail_id parameter.
2019-11-29
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/9e837fadecdd5199819a949b5b1bd84b19f716f2
9e837fadecdd5199819a949b5b1bd84b19f716f2
SINGLE
['9e837fadecdd5199819a949b5b1bd84b19f716f2']
{'b584973e73a4d25be623c9748dd9817f69422ecc'}
9e837fadecdd5199819a949b5b1bd84b19f716f2
1
11/28/2019, 10:04:23
Update voicemail_greeting_edit.php
FusionPBX
null
{'additions': 7, 'deletions': 8, 'total': 15}
[ { "additions": 7, "changes": 15, "deletions": 8, "patch": "@@ -17,7 +17,7 @@\n \n \tThe Initial Developer of the Original Code is\n \tMark J Crane <markjcrane@fusionpbx.com>\n-\tPortions created by the Initial Developer are Copyright (C) 2008-2018\n+\tPortions created by the Initial Developer are Co...
php
CWE-79
[ "app/voicemail_greetings/voicemail_greeting_edit.php" ]
app/voicemail_greetings/voicemail_greeting_edit.php
1
function loadXmlHttp(url, id) { } var requestTime = function() { var url = 'fifo_interactive_inc.php?c=<?php echo trim($_REQUEST["c"]); ?>'; new loadXmlHttp(url, 'ajax_reponse'); setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1222); }
function loadXmlHttp(url, id) { } var requestTime = function() { var url = 'fifo_interactive_inc.php?c=<?php echo trim($fifo_name); ?>'; new loadXmlHttp(url, 'ajax_reponse'); setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1222); }
CVE-2019-19387
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/44edbfe7a7e256d1b80448026617365a40c92c61'}
nvd
A cross-site scripting (XSS) vulnerability in app/fifo_list/fifo_interactive.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the c parameter.
2019-11-29
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/44edbfe7a7e256d1b80448026617365a40c92c61
44edbfe7a7e256d1b80448026617365a40c92c61
SINGLE
['44edbfe7a7e256d1b80448026617365a40c92c61']
{'c9ebd1a0156d642c7f17d7d73c41050e21d44cd2'}
44edbfe7a7e256d1b80448026617365a40c92c61
1
11/28/2019, 09:15:47
Update fifo_interactive.php
FusionPBX
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -99,7 +99,7 @@ function loadXmlHttp(url, id) {\n }\n \n var requestTime = function() {\n-\tvar url = 'fifo_interactive_inc.php?c=<?php echo trim($_REQUEST[\"c\"]); ?>';\n+\tvar url = 'fifo_interactive_inc.php?c=<?php echo trim($fifo_name);...
php
CWE-79
[ "app/fifo_list/fifo_interactive.php" ]
app/fifo_list/fifo_interactive.php
1
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2013 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <markjcrane@fusionpbx.com> */ include "root.php"; require_once "resources/require....
The Initial Developer of the Original Code is Mark J Crane <markjcrane@fusionpbx.com> Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane <markjcrane@fusionpbx.com> */ //includes include "root.php"; require_once "reso...
CVE-2019-19388
{'CWE-79'}
2.9
{'https://github.com/fusionpbx/fusionpbx/commit/b584973e73a4d25be623c9748dd9817f69422ecc'}
nvd
A cross-site scripting (XSS) vulnerability in app/dialplans/dialplan_detail_edit.php in FusionPBX 4.4.1 allows remote attackers to inject arbitrary web script or HTML via the dialplan_uuid parameter.
2019-11-29
1
https://github.com/fusionpbx/fusionpbx
https://github.com/fusionpbx/fusionpbx/commit/b584973e73a4d25be623c9748dd9817f69422ecc
b584973e73a4d25be623c9748dd9817f69422ecc
SINGLE
['b584973e73a4d25be623c9748dd9817f69422ecc']
{'fe504b83db80ebae30c982770f0f0b200b88cbe9'}
b584973e73a4d25be623c9748dd9817f69422ecc
1
11/28/2019, 09:46:01
Update dialplan_detail_edit.php
FusionPBX
null
{'additions': 32, 'deletions': 23, 'total': 55}
[ { "additions": 32, "changes": 55, "deletions": 23, "patch": "@@ -17,31 +17,35 @@\n \n \tThe Initial Developer of the Original Code is\n \tMark J Crane <markjcrane@fusionpbx.com>\n-\tPortions created by the Initial Developer are Copyright (C) 2008-2013\n+\tPortions created by the Initial Developer ar...
php
CWE-79
[ "app/dialplans/dialplan_detail_edit.php" ]
app/dialplans/dialplan_detail_edit.php
1
static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len) } /* Encryption key present ? */ iPinCount = iACLen - 1; if (buf[iOffset] & 0x20) { int iSC;
static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len) } /* Encryption key present ? */ iPinCount = iACLen > 0 ? iACLen - 1 : 0; if (buf[iOffset] & 0x20) { int iSC;
CVE-2019-19479
{'CWE-125'}
2.9
{'https://github.com/OpenSC/OpenSC/commit/c3f23b836e5a1766c36617fe1da30d22f7b63de2'}
nvd
An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during parsing of a SETCOS file attribute.
2019-12-01
1
https://github.com/OpenSC/OpenSC
https://github.com/OpenSC/OpenSC/commit/c3f23b836e5a1766c36617fe1da30d22f7b63de2
c3f23b836e5a1766c36617fe1da30d22f7b63de2
SINGLE
['c3f23b836e5a1766c36617fe1da30d22f7b63de2']
{'6263afbe43e668bd0a34ce870d7e9fc61503b512'}
c3f23b836e5a1766c36617fe1da30d22f7b63de2
1
11/03/2019, 03:45:28
fixed UNKNOWN READ Reported by OSS-Fuzz https://oss-fuzz.com/testcase-detail/5681169970757632
Frank Morgner
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -868,7 +868,7 @@ static void parse_sec_attr_44(sc_file_t *file, const u8 *buf, size_t len)\n \t\t\t}\n \n \t\t\t/* Encryption key present ? */\n-\t\t\tiPinCount = iACLen - 1;\t\t\n+\t\t\tiPinCount = iACLen > 0 ? iACLen - 1 : 0;\n \n \t\t\t...
c
CWE-125
[ "src/libopensc/card-setcos.c" ]
src/libopensc/card-setcos.c
1
static int cac_cac1_get_certificate(sc_card_t *card, u8 **out_buf, size_t *out_l u8 *out_ptr; size_t size = 0; size_t left = 0; size_t len, next_len; sc_apdu_t apdu; int r = SC_SUCCESS; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); /* get the size */ size = left = *out_buf ? *out_len : sizeof(buf); out_pt...
static int cac_cac1_get_certificate(sc_card_t *card, u8 **out_buf, size_t *out_l u8 *out_ptr; size_t size = 0; size_t left = 0; size_t len; sc_apdu_t apdu; int r = SC_SUCCESS; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); /* get the size */ size = left = *out_buf ? *out_len : sizeof(buf); out_ptr = *out_b...
CVE-2019-19481
{'CWE-119'}
2.9
{'https://github.com/OpenSC/OpenSC/commit/b75c002cfb1fd61cd20ec938ff4937d7b1a94278'}
nvd
An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC certificates.
2019-12-01
1
https://github.com/OpenSC/OpenSC
https://github.com/OpenSC/OpenSC/commit/b75c002cfb1fd61cd20ec938ff4937d7b1a94278
b75c002cfb1fd61cd20ec938ff4937d7b1a94278
SINGLE
['b75c002cfb1fd61cd20ec938ff4937d7b1a94278']
{'bfa8415ea3f5a0b055ef383863e2711b95b04ec8'}
b75c002cfb1fd61cd20ec938ff4937d7b1a94278
1
10/30/2019, 14:41:12
cac1: Correctly handle the buffer limits Found by oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18618 and others
Jakub Jelen
null
{'additions': 8, 'deletions': 6, 'total': 14}
[ { "additions": 8, "changes": 14, "deletions": 6, "patch": "@@ -69,17 +69,16 @@ static int cac_cac1_get_certificate(sc_card_t *card, u8 **out_buf, size_t *out_l\n \tu8 *out_ptr;\n \tsize_t size = 0;\n \tsize_t left = 0;\n-\tsize_t len, next_len;\n+\tsize_t len;\n \tsc_apdu_t apdu;\n \tint r = SC_SUCC...
c
CWE-119
[ "src/libopensc/card-cac1.c" ]
src/libopensc/card-cac1.c
1
int snd_timer_open(struct snd_timer_instance **ti, goto unlock; } if (!list_empty(&timer->open_list_head)) { timeri = list_entry(timer->open_list_head.next, struct snd_timer_instance, open_list); if (timeri->flags & SNDRV_TIMER_IFLG_EXCLUSIVE) { err = -EBUSY; timeri = NULL; goto unlock; } }
int snd_timer_open(struct snd_timer_instance **ti, goto unlock; } if (!list_empty(&timer->open_list_head)) { struct snd_timer_instance *t = list_entry(timer->open_list_head.next, struct snd_timer_instance, open_list); if (t->flags & SNDRV_TIMER_IFLG_EXCLUSIVE) { err = -EBUSY; goto unlock; } ...
CVE-2019-19807
{'CWE-416'}
10
{'https://github.com/torvalds/linux/commit/e7af6307a8a54f0b873960b32b6a644f2d0fbd97'}
nvd
In the Linux kernel before 5.3.11, sound/core/timer.c has a use-after-free caused by erroneous code refactoring, aka CID-e7af6307a8a5. This is related to snd_timer_open and snd_timer_close_locked. The timeri variable was originally intended to be for a newly created timer instance, but was used for a different purpose ...
2019-12-15
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e7af6307a8a54f0b873960b32b6a644f2d0fbd97
e7af6307a8a54f0b873960b32b6a644f2d0fbd97
SINGLE
['e7af6307a8a54f0b873960b32b6a644f2d0fbd97']
{'9a11ba7388f165762549903492fc34d29bbb3c04'}
e7af6307a8a54f0b873960b32b6a644f2d0fbd97
1
11/06/2019, 16:55:47
ALSA: timer: Fix incorrectly assigned timer instance The clean up commit 41672c0c24a6 ("ALSA: timer: Simplify error path in snd_timer_open()") unified the error handling code paths with the standard goto, but it introduced a subtle bug: the timer instance is stored in snd_timer_open() incorrectly even if it returns an...
Takashi Iwai
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -284,11 +284,11 @@ int snd_timer_open(struct snd_timer_instance **ti,\n \t\tgoto unlock;\n \t}\n \tif (!list_empty(&timer->open_list_head)) {\n-\t\ttimeri = list_entry(timer->open_list_head.next,\n+\t\tstruct snd_timer_instance *t =\n+\t\t...
c
CWE-416
[ "sound/core/timer.c" ]
sound/core/timer.c
1
bool MemoryManager::validate_user_stack(const Process& process, VirtualAddress v bool MemoryManager::validate_user_read(const Process& process, VirtualAddress vaddr) const { auto* region = region_from_vaddr(process, vaddr); return region && region->is_readable(); } bool MemoryManager::validate_user_write(con...
bool MemoryManager::validate_user_stack(const Process& process, VirtualAddress v bool MemoryManager::validate_user_read(const Process& process, VirtualAddress vaddr) const { auto* region = user_region_from_vaddr(const_cast<Process&>(process), vaddr); return region && region->is_user_accessible() && region->is...
CVE-2019-20172
{'CWE-119'}
6.4
{'https://github.com/SerenityOS/serenity/commit/0fc24fe2564736689859e7edfa177a86dac36bf9'}
nvd
Kernel/VM/MemoryManager.cpp in SerenityOS before 2019-12-30 does not reject syscalls with pointers into the kernel-only virtual address space, which allows local users to gain privileges by overwriting a return address that was found on the kernel stack.
2019-12-31
1
https://github.com/SerenityOS/serenity
https://github.com/SerenityOS/serenity/commit/0fc24fe2564736689859e7edfa177a86dac36bf9
0fc24fe2564736689859e7edfa177a86dac36bf9
SINGLE
['0fc24fe2564736689859e7edfa177a86dac36bf9']
{'25d7a7efa627b83066b5d76f2c5b5a76da2337bf'}
0fc24fe2564736689859e7edfa177a86dac36bf9
1
12/30/2019, 23:21:50
Kernel: User pointer validation should reject kernel-only addresses We were happily allowing syscalls with pointers into kernel-only regions (virtual address >= 0xc0000000). This patch fixes that by only considering user regions in the current process, and also double-checking the Region::is_user_accessible() flag be...
Andreas Kling
null
{'additions': 4, 'deletions': 4, 'total': 8}
[ { "additions": 4, "changes": 8, "deletions": 4, "patch": "@@ -592,14 +592,14 @@ bool MemoryManager::validate_user_stack(const Process& process, VirtualAddress v\n \n bool MemoryManager::validate_user_read(const Process& process, VirtualAddress vaddr) const\n {\n- auto* region = region_from_vaddr(...
cpp
CWE-119
[ "Kernel/VM/MemoryManager.cpp" ]
Kernel/VM/MemoryManager.cpp
1
static void listdir(unsigned int depth, int f, void * const tls_fd, char *names; PureFileInfo *s; PureFileInfo *r; int d; if (depth >= max_ls_depth || matches >= max_ls_files) { static void listdir(unsigned int depth, int f, void * const tls_fd, } outputfiles(f, tls_fd); r = dir; w...
static void listdir(unsigned int depth, int f, void * const tls_fd, char *names; PureFileInfo *s; PureFileInfo *r; char *alloca_subdir; size_t sizeof_subdir; int d; if (depth >= max_ls_depth || matches >= max_ls_files) { static void listdir(unsigned int depth, int f, void * const tls_fd, ...
CVE-2019-20176
{'CWE-400'}
2.9
{'https://github.com/jedisct1/pure-ftpd/commit/aea56f4bcb9948d456f3fae4d044fd3fa2e19706'}
nvd
In Pure-FTPd 1.0.49, a stack exhaustion issue was discovered in the listdir function in ls.c.
2019-12-31
1
https://github.com/jedisct1/pure-ftpd
https://github.com/jedisct1/pure-ftpd/commit/aea56f4bcb9948d456f3fae4d044fd3fa2e19706
aea56f4bcb9948d456f3fae4d044fd3fa2e19706
SINGLE
['aea56f4bcb9948d456f3fae4d044fd3fa2e19706']
{'75ae1c977741c1ccfa1c20e04a8bd5d38a03d94b'}
aea56f4bcb9948d456f3fae4d044fd3fa2e19706
1
12/30/2019, 16:40:04
listdir(): reuse a single buffer to store every file name to display Allocating a new buffer for each entry is useless. And as these buffers are allocated on the stack, on systems with a small stack size, with many entries, the limit can easily be reached, causing a stack exhaustion and aborting the user session. Re...
Frank Denis
{'com_1': {'author': 'maged9977', 'datetime': '01/12/2021, 10:31:49', 'body': 'j'}}
{'additions': 8, 'deletions': 7, 'total': 15}
[ { "additions": 8, "changes": 15, "deletions": 7, "patch": "@@ -661,6 +661,8 @@ static void listdir(unsigned int depth, int f, void * const tls_fd,\n char *names;\n PureFileInfo *s;\n PureFileInfo *r;\n+ char *alloca_subdir;\n+ size_t sizeof_subdir;\n int d;\n \n if (depth >...
c
CWE-400
[ "src/ls.c" ]
src/ls.c
1
function initEnv() { // some sanity checks // strpos ( string $haystack , mixed $needle if (strpos($args->reqURI,'javascript') !== false) { $args->reqURI = null; } }
function initEnv() { // some sanity checks // strpos ( string $haystack , mixed $needle if (stripos($args->reqURI,'javascript') !== false) { $args->reqURI = null; } }
CVE-2019-20381
{'CWE-79'}
2.9
{'https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/cde692895e425731e6951d265a01ca6425a7c26e'}
nvd
TestLink before 1.9.20 allows XSS via non-lowercase javascript: in the index.php reqURI parameter. NOTE: this issue exists because of an incomplete fix for CVE-2019-19491.
2020-01-20
1
https://github.com/TestLinkOpenSourceTRMS/testlink-code
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/cde692895e425731e6951d265a01ca6425a7c26e
cde692895e425731e6951d265a01ca6425a7c26e
SINGLE
['cde692895e425731e6951d265a01ca6425a7c26e']
{'e2bebf68438deaa8df9a96c488f3cad11b2e0478'}
cde692895e425731e6951d265a01ca6425a7c26e
1
12/31/2019, 14:07:14
fix: 0008808: TestLink v1.9.19.1 - Bypass security fix for XSS at index.php
Francisco Mancardi
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -92,7 +92,7 @@ function initEnv() {\n \n // some sanity checks\n // strpos ( string $haystack , mixed $needle\n- if (strpos($args->reqURI,'javascript') !== false) {\n+ if (stripos($args->reqURI,'javascript') !== false) {\n ...
php
CWE-79
[ "index.php" ]
index.php
1
int button_open(Button *b) { } (void) button_set_mask(b); r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b); if (r < 0) { log_error_errno(r, "Failed to add button event: %m");
int button_open(Button *b) { } (void) button_set_mask(b); b->io_event_source = sd_event_source_unref(b->io_event_source); r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b); if (r < 0) { log_error_errno(r, "F...
CVE-2019-20386
{'CWE-401'}
2.9
{'https://github.com/systemd/systemd/commit/b2774a3ae692113e1f47a336a6c09bac9cfb49ad'}
nvd
An issue was discovered in button_open in login/logind-button.c in systemd before 243. When executing the udevadm trigger command, a memory leak may occur.
2020-01-21
1
https://github.com/systemd/systemd
https://github.com/systemd/systemd/commit/b2774a3ae692113e1f47a336a6c09bac9cfb49ad
b2774a3ae692113e1f47a336a6c09bac9cfb49ad
SINGLE
['b2774a3ae692113e1f47a336a6c09bac9cfb49ad']
{'1f7b6872dbe8ccae1f3bda9aa6aeb87c9b42e01e'}
b2774a3ae692113e1f47a336a6c09bac9cfb49ad
1
05/22/2019, 06:24:28
bus_open leak sd_event_source when udevadm trigger。 On my host, when executing the udevadm trigger, I only receive the change event, which causes memleak
ven
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -341,7 +341,8 @@ int button_open(Button *b) {\n }\n \n (void) button_set_mask(b);\n-\n+ \n+ b->io_event_source = sd_event_source_unref(b->io_event_source);\n r = sd_event_add_io(b->manager->event, &b->...
c
CWE-401
[ "src/login/logind-button.c" ]
src/login/logind-button.c
1
repodata_schema2id(Repodata *data, Id *schema, int create) cid = schematahash[h]; if (cid) { if (!memcmp(data->schemadata + data->schemata[cid], schema, len * sizeof(Id))) return cid; /* cache conflict, do a slow search */ for (cid = 1; cid < data->nschemata; cid++) if (!memcm...
repodata_schema2id(Repodata *data, Id *schema, int create) cid = schematahash[h]; if (cid) { if ((data->schemata[cid] + len <= data->schemadatalen) && !memcmp(data->schemadata + data->schemata[cid], schema, len * sizeof(Id))) return cid; /* cache conflict, do a slow search */ for...
CVE-2019-20387
{'CWE-125'}
2.9
{'https://github.com/openSUSE/libsolv/commit/fdb9c9c03508990e4583046b590c30d958f272da'}
nvd
repodata_schema2id in repodata.c in libsolv before 0.7.6 has a heap-based buffer over-read via a last schema whose length is less than the length of the input schema.
2020-01-21
1
https://github.com/openSUSE/libsolv
https://github.com/openSUSE/libsolv/commit/fdb9c9c03508990e4583046b590c30d958f272da
fdb9c9c03508990e4583046b590c30d958f272da
SINGLE
['fdb9c9c03508990e4583046b590c30d958f272da']
{'9bb2290c5e88648697ddbe011a2134eecd3cc9ee'}
fdb9c9c03508990e4583046b590c30d958f272da
1
08/06/2019, 01:50:57
repodata_schema2id: fix heap-buffer-overflow in memcmp When the length of last schema in data->schemadata is less than length of input schema, we got a read overflow in asan test. Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
Zhipeng Xie
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -211,11 +211,13 @@ repodata_schema2id(Repodata *data, Id *schema, int create)\n cid = schematahash[h];\n if (cid)\n {\n- if (!memcmp(data->schemadata + data->schemata[cid], schema, len * sizeof(Id)))\n+ if ((data->schemat...
c
CWE-125
[ "src/repodata.c" ]
src/repodata.c
1
resolve_iffeature(struct lys_iffeature *expr) { int index_e = 0, index_f = 0; if (expr->expr) { return resolve_iffeature_recursive(expr, &index_e, &index_f); } return 0;
resolve_iffeature(struct lys_iffeature *expr) { int index_e = 0, index_f = 0; if (expr->expr && expr->features[0]) { return resolve_iffeature_recursive(expr, &index_e, &index_f); } return 0;
CVE-2019-20391
{'CWE-119'}
2.9
{'https://github.com/CESNET/libyang/commit/bdb596ddc07596fa212f231135b87d0b9178f6f8'}
nvd
An invalid memory access flaw is present in libyang before v1.0-r3 in the function resolve_feature_value() when an if-feature statement is used inside a bit. Applications that use libyang to parse untrusted input yang files may crash.
2020-01-22
1
https://github.com/CESNET/libyang
https://github.com/CESNET/libyang/commit/bdb596ddc07596fa212f231135b87d0b9178f6f8
bdb596ddc07596fa212f231135b87d0b9178f6f8
SINGLE
['bdb596ddc07596fa212f231135b87d0b9178f6f8']
{'1e375ccc06fc7ebd2683c22e47ad9d6794450105'}
bdb596ddc07596fa212f231135b87d0b9178f6f8
1
04/29/2019, 06:59:30
resolve BUGFIX handle yet unresolved if-features Fixes #772
Michal Vasko
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1402,7 +1402,7 @@ resolve_iffeature(struct lys_iffeature *expr)\n {\n int index_e = 0, index_f = 0;\n \n- if (expr->expr) {\n+ if (expr->expr && expr->features[0]) {\n return resolve_iffeature_recursive(expr, &index_e, &...
c
CWE-119
[ "src/resolve.c" ]
src/resolve.c
1
lys_restr_dup(struct lys_module *mod, struct lys_restr *old, int size, int shall LY_CHECK_ERR_RETURN(!result, LOGMEM(mod->ctx), NULL); for (i = 0; i < size; i++) { result[i].ext_size = old[i].ext_size; lys_ext_dup(mod->ctx, mod, old[i].ext, old[i].ext_size, &result[i], LYEXT_PAR_RESTR, &result...
lys_restr_dup(struct lys_module *mod, struct lys_restr *old, int size, int shall LY_CHECK_ERR_RETURN(!result, LOGMEM(mod->ctx), NULL); for (i = 0; i < size; i++) { /* copying unresolved extensions is not supported */ if (unres_schema_find(unres, -1, (void *)&old[i].ext, UNRES_EXT) == -1) { ...
CVE-2019-20398
{'CWE-476'}
2.9
{'https://github.com/CESNET/libyang/commit/7852b272ef77f8098c35deea6c6f09cb78176f08'}
nvd
A NULL pointer dereference is present in libyang before v1.0-r3 in the function lys_extension_instances_free() due to a copy of unresolved extensions in lys_restr_dup(). Applications that use libyang to parse untrusted input yang files may crash.
2020-01-22
1
https://github.com/CESNET/libyang
https://github.com/CESNET/libyang/commit/7852b272ef77f8098c35deea6c6f09cb78176f08
7852b272ef77f8098c35deea6c6f09cb78176f08
SINGLE
['7852b272ef77f8098c35deea6c6f09cb78176f08']
{'cdd00be31b170a0e4771ecdf75fc09a2b492f607'}
7852b272ef77f8098c35deea6c6f09cb78176f08
1
04/30/2019, 07:25:26
schema tree BUGFIX do not copy unresolved exts in groupings restrictions Fixes #773
Michal Vasko
null
{'additions': 5, 'deletions': 2, 'total': 7}
[ { "additions": 5, "changes": 7, "deletions": 2, "patch": "@@ -1601,8 +1601,11 @@ lys_restr_dup(struct lys_module *mod, struct lys_restr *old, int size, int shall\n LY_CHECK_ERR_RETURN(!result, LOGMEM(mod->ctx), NULL);\n \n for (i = 0; i < size; i++) {\n- result[i].ext_size = old[i].ex...
c
CWE-476
[ "src/tree_schema.c" ]
src/tree_schema.c
1
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF if (!(es->flags & GF_M2TS_ES_IS_SECTION) ) gf_m2ts_set_pes_framing(pes, GF_M2TS_PES_FRAMING_SKIP); nb_es++; } if (es->stream_type == GF_M2TS_VIDEO_HEVC) nb_hevc++; else if (es->stream_type == GF_M2TS_VIDEO_HEVC_TEMPORAL) nb_...
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF if (!(es->flags & GF_M2TS_ES_IS_SECTION) ) gf_m2ts_set_pes_framing(pes, GF_M2TS_PES_FRAMING_SKIP); nb_es++; if (es->stream_type == GF_M2TS_VIDEO_HEVC) nb_hevc++; else if (es->stream_type == GF_M2TS_VIDEO_HEVC_TEMPORAL) nb_he...
CVE-2019-20629
{'CWE-125'}
2.9
{'https://github.com/gpac/gpac/commit/2320eb73afba753b39b7147be91f7be7afc0eeb7'}
nvd
An issue was discovered in libgpac.a in GPAC before 0.8.0, as demonstrated by MP4Box. It contains a heap-based buffer over-read in gf_m2ts_process_pmt in media_tools/mpegts.c that can cause a denial of service via a crafted MP4 file.
2020-03-24
1
https://github.com/gpac/gpac
https://github.com/gpac/gpac/commit/2320eb73afba753b39b7147be91f7be7afc0eeb7
2320eb73afba753b39b7147be91f7be7afc0eeb7
SINGLE
['2320eb73afba753b39b7147be91f7be7afc0eeb7']
{'6170024568f4dda310e98ef7508477b425c58d09'}
2320eb73afba753b39b7147be91f7be7afc0eeb7
1
07/07/2019, 14:55:12
fixed potential crash in TS - cf #1264
jeanlf
null
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -1525,14 +1525,14 @@ static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF\n \t\t\tif (!(es->flags & GF_M2TS_ES_IS_SECTION) ) gf_m2ts_set_pes_framing(pes, GF_M2TS_PES_FRAMING_SKIP);\n \n \t\t\tnb_es++;\n-\t\t}\n...
c
CWE-125
[ "src/media_tools/mpegts.c" ]
src/media_tools/mpegts.c
1
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF pmt->program->pcr_pid = ((data[0] & 0x1f) << 8) | data[1]; info_length = ((data[2]&0xf)<<8) | data[3]; if (info_length != 0) { /* ...Read Descriptors ... */ u8 tag, len; u32 first_loop_len = 0; tag = data[4]; len = data[5]; ...
static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF pmt->program->pcr_pid = ((data[0] & 0x1f) << 8) | data[1]; info_length = ((data[2]&0xf)<<8) | data[3]; if (info_length + 4 > data_size) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER, ("Broken PMT first loop, %d bytes avail but first loop ...
CVE-2019-20630
{'CWE-125'}
2.9
{'https://github.com/gpac/gpac/commit/1ab4860609f2e7a35634930571e7d0531297e090'}
nvd
An issue was discovered in libgpac.a in GPAC before 0.8.0, as demonstrated by MP4Box. It contains a heap-based buffer over-read in BS_ReadByte (called from gf_bs_read_bit) in utils/bitstream.c that can cause a denial of service via a crafted MP4 file.
2020-03-24
1
https://github.com/gpac/gpac
https://github.com/gpac/gpac/commit/1ab4860609f2e7a35634930571e7d0531297e090
1ab4860609f2e7a35634930571e7d0531297e090
SINGLE
['1ab4860609f2e7a35634930571e7d0531297e090']
{'f0af02425883b2e1c651c6d0c602e1259b67a6b6'}
1ab4860609f2e7a35634930571e7d0531297e090
1
07/07/2019, 15:42:35
fixed potential crash on PMT IOD parse - cf #1268 #1269
jeanlf
null
{'additions': 21, 'deletions': 14, 'total': 35}
[ { "additions": 21, "changes": 35, "deletions": 14, "patch": "@@ -1152,28 +1152,35 @@ static void gf_m2ts_process_pmt(GF_M2TS_Demuxer *ts, GF_M2TS_SECTION_ES *pmt, GF\n \tpmt->program->pcr_pid = ((data[0] & 0x1f) << 8) | data[1];\n \n \tinfo_length = ((data[2]&0xf)<<8) | data[3];\n-\tif (info_length ...
c
CWE-125
[ "src/media_tools/mpegts.c" ]
src/media_tools/mpegts.c
1
static int input_default_setkeycode(struct input_dev *dev, } } __clear_bit(*old_keycode, dev->keybit); __set_bit(ke->keycode, dev->keybit); for (i = 0; i < dev->keycodemax; i++) { if (input_fetch_keycode(dev, i) == *old_keycode) { __set_bit(*old_keycode, dev->keybit); break; /* Setting the bit twice is...
static int input_default_setkeycode(struct input_dev *dev, } } if (*old_keycode <= KEY_MAX) { __clear_bit(*old_keycode, dev->keybit); for (i = 0; i < dev->keycodemax; i++) { if (input_fetch_keycode(dev, i) == *old_keycode) { __set_bit(*old_keycode, dev->keybit); /* Setting the bit twice is useless,...
CVE-2019-20636
{'CWE-787'}
10
{'https://github.com/torvalds/linux/commit/cb222aed03d798fc074be55e59d9a112338ee784'}
nvd
In the Linux kernel before 5.4.12, drivers/input/input.c has out-of-bounds writes via a crafted keycode table, as demonstrated by input_set_keycode, aka CID-cb222aed03d7.
2020-04-08
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/cb222aed03d798fc074be55e59d9a112338ee784
cb222aed03d798fc074be55e59d9a112338ee784
SINGLE
['cb222aed03d798fc074be55e59d9a112338ee784']
{'f729a1b0f8df7091cea3729fc0e414f5326e1163'}
cb222aed03d798fc074be55e59d9a112338ee784
1
12/13/2019, 22:56:16
Input: add safety guards to input_set_keycode() If we happen to have a garbage in input device's keycode table with values too big we'll end up doing clear_bit() with offset way outside of our bitmaps, damaging other objects within an input device or even outside of it. Let's add sanity checks to the returned old keyc...
Dmitry Torokhov
null
{'additions': 16, 'deletions': 10, 'total': 26}
[ { "additions": 16, "changes": 26, "deletions": 10, "patch": "@@ -878,16 +878,18 @@ static int input_default_setkeycode(struct input_dev *dev,\n \t\t}\n \t}\n \n-\t__clear_bit(*old_keycode, dev->keybit);\n-\t__set_bit(ke->keycode, dev->keybit);\n-\n-\tfor (i = 0; i < dev->keycodemax; i++) {\n-\t\tif ...
c
CWE-787
[ "drivers/input/input.c" ]
drivers/input/input.c
1
#define OPER_SAVE 0 #define OPER_RESTORE 1 #define RGB24_TO_PIXEL(bpp,r,g,b) \ ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \ << client->format.redShift | \ rfbBool HandleCursorShape(rfbCli...
#define OPER_SAVE 0 #define OPER_RESTORE 1 #define MAX_CURSOR_SIZE 1024 #define RGB24_TO_PIXEL(bpp,r,g,b) \ ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \ << client->format.redShift | \ rf...
CVE-2019-20788
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/LibVNC/libvncserver/commit/54220248886b5001fbbb9fa73c4e1a2cb9413fed'}
nvd
libvncclient/cursor.c in LibVNCServer through 0.9.12 has a HandleCursorShape integer overflow and heap-based buffer overflow via a large height or width value. NOTE: this may overlap CVE-2019-15690.
2020-04-23
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/54220248886b5001fbbb9fa73c4e1a2cb9413fed
54220248886b5001fbbb9fa73c4e1a2cb9413fed
SINGLE
['54220248886b5001fbbb9fa73c4e1a2cb9413fed']
{'6073771eed1caf72f196e410182471e0dfd32149'}
54220248886b5001fbbb9fa73c4e1a2cb9413fed
1
11/17/2019, 16:18:35
libvncclient/cursor: limit width/height input values Avoids a possible heap overflow reported by Pavel Cheremushkin <Pavel.Cheremushkin@kaspersky.com>. re #275
Christian Beier
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -28,6 +28,8 @@\n #define OPER_SAVE 0\n #define OPER_RESTORE 1\n \n+#define MAX_CURSOR_SIZE 1024\n+\n #define RGB24_TO_PIXEL(bpp,r,g,b) \\\n ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax...
c
CWE-787
[ "libvncclient/cursor.c" ]
libvncclient/cursor.c
1
#define OPER_SAVE 0 #define OPER_RESTORE 1 #define RGB24_TO_PIXEL(bpp,r,g,b) \ ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \ << client->format.redShift | \ rfbBool HandleCursorShape(rfbCli...
#define OPER_SAVE 0 #define OPER_RESTORE 1 #define MAX_CURSOR_SIZE 1024 #define RGB24_TO_PIXEL(bpp,r,g,b) \ ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax + 127) / 255 \ << client->format.redShift | \ rf...
CVE-2019-20788
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/LibVNC/libvncserver/commit/54220248886b5001fbbb9fa73c4e1a2cb9413fed'}
nvd
libvncclient/cursor.c in LibVNCServer through 0.9.12 has a HandleCursorShape integer overflow and heap-based buffer overflow via a large height or width value. NOTE: this may overlap CVE-2019-15690.
2020-04-23
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/54220248886b5001fbbb9fa73c4e1a2cb9413fed
54220248886b5001fbbb9fa73c4e1a2cb9413fed
SINGLE
['54220248886b5001fbbb9fa73c4e1a2cb9413fed']
{'6073771eed1caf72f196e410182471e0dfd32149'}
54220248886b5001fbbb9fa73c4e1a2cb9413fed
1
11/17/2019, 16:18:35
libvncclient/cursor: limit width/height input values Avoids a possible heap overflow reported by Pavel Cheremushkin <Pavel.Cheremushkin@kaspersky.com>. re #275
Christian Beier
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -28,6 +28,8 @@\n #define OPER_SAVE 0\n #define OPER_RESTORE 1\n \n+#define MAX_CURSOR_SIZE 1024\n+\n #define RGB24_TO_PIXEL(bpp,r,g,b) \\\n ((((uint##bpp##_t)(r) & 0xFF) * client->format.redMax...
c
CWE-190
[ "libvncclient/cursor.c" ]
libvncclient/cursor.c
1
coolkey_add_object(coolkey_private_data_t *priv, unsigned long object_id, const new_object.id = object_id; new_object.length = object_length; if (object_data) { new_object.data = malloc(object_length + add_v1_record); if (new_object.data == NULL) {
coolkey_add_object(coolkey_private_data_t *priv, unsigned long object_id, const new_object.id = object_id; new_object.length = object_length; /* The object ID needs to be unique */ if (coolkey_find_object_by_id(&priv->objects_list, object_id) != NULL) { return SC_ERROR_INTERNAL; } if (object_data) { new_ob...
CVE-2019-20792
{'CWE-415'}
6.4
{'https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4'}
nvd
OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check.
2020-04-29
1
https://github.com/OpenSC/OpenSC
https://github.com/OpenSC/OpenSC/commit/c246f6f69a749d4f68626b40795a4f69168008f4
c246f6f69a749d4f68626b40795a4f69168008f4
SINGLE
['c246f6f69a749d4f68626b40795a4f69168008f4']
{'32b49894c5991a63fcb913c3e5bc6dc3af9c3c22'}
c246f6f69a749d4f68626b40795a4f69168008f4
1
12/04/2019, 14:54:43
coolkey: Make sure the object ID is unique when filling list Thanks to oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19208
Jakub Jelen
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -1945,6 +1945,11 @@ coolkey_add_object(coolkey_private_data_t *priv, unsigned long object_id, const\n \tnew_object.id = object_id;\n \tnew_object.length = object_length;\n \n+\t/* The object ID needs to be unique */\n+\tif (coolkey_find_ob...
c
CWE-415
[ "src/libopensc/card-coolkey.c" ]
src/libopensc/card-coolkey.c
1
PackLinuxElf32::invert_pt_dynamic(Elf32_Dyn const *dynp) for (; ; ++ndx, ++dynp) { unsigned const d_tag = get_te32(&dynp->d_tag); if (d_tag < DT_NUM) { dt_table[d_tag] = ndx; } if (Elf32_Dyn::DT_NULL == d_tag) { PackLinuxElf32::invert_pt_dynamic(Elf32_Dyn const *dynp) ...
PackLinuxElf32::invert_pt_dynamic(Elf32_Dyn const *dynp) for (; ; ++ndx, ++dynp) { unsigned const d_tag = get_te32(&dynp->d_tag); if (d_tag < DT_NUM) { if (dt_table[d_tag] && get_te32(&dynp->d_val) != get_te32(&dynp0[-1+ dt_table[d_tag]].d_val)) { ...
CVE-2019-20805
{'CWE-190'}
2.9
{'https://github.com/upx/upx/commit/8be9da8280dfa69d5df4417d4d81bda1cab78010'}
nvd
p_lx_elf.cpp in UPX before 3.96 has an integer overflow during unpacking via crafted values in a PT_DYNAMIC segment.
2020-06-01
1
https://github.com/upx/upx
https://github.com/upx/upx/commit/8be9da8280dfa69d5df4417d4d81bda1cab78010
8be9da8280dfa69d5df4417d4d81bda1cab78010
SINGLE
['8be9da8280dfa69d5df4417d4d81bda1cab78010']
{'819c33fee2b2c33b96bef27a13cb20f2589819aa'}
8be9da8280dfa69d5df4417d4d81bda1cab78010
1
11/24/2019, 04:06:14
Avoid bogus values in PT_DYNAMIC segment. Detect duplicate DT_*. Detect out-of-bounds hashtab and gashtab. Detect missing DT_REL, DT_RELA. Detect out-of-bounds d_val. https://github.com/upx/upx/issues/317 modified: p_lx_elf.cpp
John Reiser
null
{'additions': 43, 'deletions': 7, 'total': 50}
[ { "additions": 43, "changes": 50, "deletions": 7, "patch": "@@ -1574,6 +1574,14 @@ PackLinuxElf32::invert_pt_dynamic(Elf32_Dyn const *dynp)\n for (; ; ++ndx, ++dynp) {\n unsigned const d_tag = get_te32(&dynp->d_tag);\n if (d_tag < DT_NUM) {\n+ if (dt_table[d_tag]\n+ ...
cpp
CWE-190
[ "src/p_lx_elf.cpp" ]
src/p_lx_elf.cpp
1
static void tw5864_handle_frame(struct tw5864_h264_frame *frame) input->vb = NULL; spin_unlock_irqrestore(&input->slock, flags); v4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf); if (!vb) { /* Gone because of disabling */ dev_dbg(&dev->pci->dev, "vb is empty, dropping frame\n"); return; } /* * Check for s...
static void tw5864_handle_frame(struct tw5864_h264_frame *frame) input->vb = NULL; spin_unlock_irqrestore(&input->slock, flags); if (!vb) { /* Gone because of disabling */ dev_dbg(&dev->pci->dev, "vb is empty, dropping frame\n"); return; } v4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf); /* * Check for s...
CVE-2019-20806
{'CWE-476'}
2.9
{'https://github.com/torvalds/linux/commit/2e7682ebfc750177a4944eeb56e97a3f05734528'}
nvd
An issue was discovered in the Linux kernel before 5.2. There is a NULL pointer dereference in tw5864_handle_frame() in drivers/media/pci/tw5864/tw5864-video.c, which may cause denial of service, aka CID-2e7682ebfc75.
2020-05-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2e7682ebfc750177a4944eeb56e97a3f05734528
2e7682ebfc750177a4944eeb56e97a3f05734528
SINGLE
['2e7682ebfc750177a4944eeb56e97a3f05734528']
{'f8ee34c3e77afd8cfc13f98e326325f17494f1e5'}
2e7682ebfc750177a4944eeb56e97a3f05734528
1
03/15/2019, 02:01:24
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame 'vb' null check should be done before dereferencing it in tw5864_handle_frame, otherwise a NULL pointer dereference may occur. Fixes: 34d1324edd31 ("[media] pci: Add tw5864 driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-of...
YueHaibing
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -1395,13 +1395,13 @@ static void tw5864_handle_frame(struct tw5864_h264_frame *frame)\n \tinput->vb = NULL;\n \tspin_unlock_irqrestore(&input->slock, flags);\n \n-\tv4l2_buf = to_vb2_v4l2_buffer(&vb->vb.vb2_buf);\n-\n \tif (!vb) { /* Gone ...
c
CWE-476
[ "drivers/media/pci/tw5864/tw5864-video.c" ]
drivers/media/pci/tw5864/tw5864-video.c
1
ConnectClientToUnixSock(const char *sockFile) int sock; struct sockaddr_un addr; addr.sun_family = AF_UNIX; strcpy(addr.sun_path, sockFile); sock = socket(AF_UNIX, SOCK_STREAM, 0);
ConnectClientToUnixSock(const char *sockFile) int sock; struct sockaddr_un addr; addr.sun_family = AF_UNIX; if(strlen(sockFile) + 1 > sizeof(addr.sun_path)) { rfbClientErr("ConnectToUnixSock: socket file name too long\n"); return -1; } strcpy(addr.sun_path, sockFile); sock = socket(AF_UNIX, ...
CVE-2019-20839
{'CWE-120'}
2.9
{'https://github.com/LibVNC/libvncserver/commit/3fd03977c9b35800d73a865f167338cb4d05b0c1'}
nvd
libvncclient/sockets.c in LibVNCServer before 0.9.13 has a buffer overflow via a long socket filename.
2020-06-17
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/3fd03977c9b35800d73a865f167338cb4d05b0c1
3fd03977c9b35800d73a865f167338cb4d05b0c1
SINGLE
['3fd03977c9b35800d73a865f167338cb4d05b0c1']
{'3304e1368965fbc6e4326c4f7aef6e4e39827621'}
3fd03977c9b35800d73a865f167338cb4d05b0c1
1
04/06/2019, 18:23:12
libvncclient: bail out if unix socket name would overflow Closes #291
Christian Beier
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -461,6 +461,10 @@ ConnectClientToUnixSock(const char *sockFile)\n int sock;\n struct sockaddr_un addr;\n addr.sun_family = AF_UNIX;\n+ if(strlen(sockFile) + 1 > sizeof(addr.sun_path)) {\n+ rfbClientErr(\"ConnectToUnixSock: sock...
c
CWE-120
[ "libvncclient/sockets.c" ]
libvncclient/sockets.c
1
hybiReadAndDecode(ws_ctx_t *wsctx, char *dst, int len, int *sockRet, int nInBuf) int bufsize; int nextRead; unsigned char *data; uint32_t *data32; /* if data was carried over, copy to start of buffer */ memcpy(wsctx->writePos, wsctx->carryBuf, wsctx->carrylen); hybiReadAndDecode(ws_ctx_t *wsctx, char *dst...
hybiReadAndDecode(ws_ctx_t *wsctx, char *dst, int len, int *sockRet, int nInBuf) int bufsize; int nextRead; unsigned char *data; /* if data was carried over, copy to start of buffer */ memcpy(wsctx->writePos, wsctx->carryBuf, wsctx->carrylen); hybiReadAndDecode(ws_ctx_t *wsctx, char *dst, int len, int *sock...
CVE-2019-20840
{'CWE-787'}
2.9
{'https://github.com/LibVNC/libvncserver/commit/0cf1400c61850065de590d403f6d49e32882fd76'}
nvd
An issue was discovered in LibVNCServer before 0.9.13. libvncserver/ws_decode.c can lead to a crash because of unaligned accesses in hybiReadAndDecode.
2020-06-17
1
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/0cf1400c61850065de590d403f6d49e32882fd76
0cf1400c61850065de590d403f6d49e32882fd76
SINGLE
['0cf1400c61850065de590d403f6d49e32882fd76']
{'3b3a5c478344d4f6faba47c9229f76423c87101d'}
0cf1400c61850065de590d403f6d49e32882fd76
1
05/28/2019, 16:30:46
fix crash because of unaligned accesses in hybiReadAndDecode()
Rolf Eike Beer
null
{'additions': 4, 'deletions': 3, 'total': 7}
[ { "additions": 4, "changes": 7, "deletions": 3, "patch": "@@ -327,7 +327,6 @@ hybiReadAndDecode(ws_ctx_t *wsctx, char *dst, int len, int *sockRet, int nInBuf)\n int bufsize;\n int nextRead;\n unsigned char *data;\n- uint32_t *data32;\n \n /* if data was carried over, copy to start of buffer...
c
CWE-787
[ "libvncserver/ws_decode.c" ]
libvncserver/ws_decode.c
1
static bool env_var_checked_p; #define FIELD_2DD_VECTOR(nam, size, dxf) \ OVERFLOW_CHECK (nam, _obj->size) \ FIELD_2RD (nam[0], dxf); \ for (vcount = 1; vcount < (BITCODE_BL)_obj->s...
static bool env_var_checked_p; #define FIELD_2DD_VECTOR(nam, size, dxf) \ OVERFLOW_CHECK (nam, _obj->size) \ if (_obj->size) \ FIELD_2RD (nam[0], dxf); ...
CVE-2019-20909
{'CWE-476'}
2.9
{'https://github.com/LibreDWG/libredwg/commit/d7913b893bfa98fab27f05825dc4cab2d3a20c83'}
nvd
An issue was discovered in GNU LibreDWG through 0.9.3. There is a NULL pointer dereference in the function dwg_encode_LWPOLYLINE in dwg.spec.
2020-07-16
1
https://github.com/LibreDWG/libredwg
https://github.com/LibreDWG/libredwg/commit/d7913b893bfa98fab27f05825dc4cab2d3a20c83
d7913b893bfa98fab27f05825dc4cab2d3a20c83
SINGLE
['d7913b893bfa98fab27f05825dc4cab2d3a20c83']
{'95cc9300430d35feb05b06a9badf678419463dbe'}
d7913b893bfa98fab27f05825dc4cab2d3a20c83
1
12/31/2019, 07:52:11
encode: fix empty FIELD_2DD_VECTOR Fixes GH #178 null_pointer1 case
Reini Urban
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -281,7 +281,8 @@ static bool env_var_checked_p;\n \n #define FIELD_2DD_VECTOR(nam, size, dxf) \\\n OVERFLOW_CHECK (nam, _obj->size) \\\n- FIELD_2RD (nam[0],...
c
CWE-476
[ "src/encode.c" ]
src/encode.c
1
bit_write_UMC (Bit_Chain *dat, BITCODE_UMC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40) i--; byte[i] &= 0x7f; for (j = 4; j >= i; j--)
bit_write_UMC (Bit_Chain *dat, BITCODE_UMC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40 && i > 0) i--; byte[i] &= 0x7f; for (j = 4; j >= i; j--)
CVE-2019-20912
{'CWE-787'}
6.4
{'https://github.com/LibreDWG/libredwg/commit/b84c2cab55948a5ee70860779b2640913e3ee1ed'}
nvd
An issue was discovered in GNU LibreDWG through 0.9.3. Crafted input will lead to a stack overflow in bits.c, possibly related to bit_read_TF.
2020-07-16
1
https://github.com/LibreDWG/libredwg
https://github.com/LibreDWG/libredwg/commit/b84c2cab55948a5ee70860779b2640913e3ee1ed
b84c2cab55948a5ee70860779b2640913e3ee1ed
SINGLE
['b84c2cab55948a5ee70860779b2640913e3ee1ed']
{'abab1bdf55f4606946d0ed604b58823f98add9d2'}
b84c2cab55948a5ee70860779b2640913e3ee1ed
1
12/31/2019, 07:49:07
encode: protect from stack under-flow From GH #178 fuzzing
Reini Urban
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -953,7 +953,7 @@ bit_write_UMC (Bit_Chain *dat, BITCODE_UMC val)\n if (byte[i] & 0x7f)\n break;\n \n- if (byte[i] & 0x40)\n+ if (byte[i] & 0x40 && i > 0)\n i--;\n byte[i] &= 0x7f;\n for (j = 4; j >= i; j--)", "path"...
c
CWE-787
[ "src/bits.c" ]
src/bits.c
1
bit_write_MC (Bit_Chain *dat, BITCODE_MC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40) i--; byte[i] &= 0x7f; if (negative) bit_write_UMC (Bit_Chain *dat, BITCODE_UMC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40) i--; byte[i] &= 0x7f; for (j = 4; j >= i; j--)
bit_write_MC (Bit_Chain *dat, BITCODE_MC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40 && i > 0) i--; byte[i] &= 0x7f; if (negative) bit_write_UMC (Bit_Chain *dat, BITCODE_UMC val) if (byte[i] & 0x7f) break; if (byte[i] & 0x40 && i > 0) i--; byte[i] &= 0x7f; for (j = 4; j...
CVE-2019-20915
{'CWE-125'}
4.9
{'https://github.com/LibreDWG/libredwg/commit/95cc9300430d35feb05b06a9badf678419463dbe'}
nvd
An issue was discovered in GNU LibreDWG through 0.9.3. Crafted input will lead to a heap-based buffer over-read in bit_write_TF in bits.c.
2020-07-16
1
https://github.com/LibreDWG/libredwg
https://github.com/LibreDWG/libredwg/commit/95cc9300430d35feb05b06a9badf678419463dbe
95cc9300430d35feb05b06a9badf678419463dbe
SINGLE
['95cc9300430d35feb05b06a9badf678419463dbe']
{'abab1bdf55f4606946d0ed604b58823f98add9d2'}
95cc9300430d35feb05b06a9badf678419463dbe
1
12/31/2019, 07:49:07
encode: protect from stack under-flow From GH #178 fuzzing
Reini Urban
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -883,7 +883,7 @@ bit_write_MC (Bit_Chain *dat, BITCODE_MC val)\n if (byte[i] & 0x7f)\n break;\n \n- if (byte[i] & 0x40)\n+ if (byte[i] & 0x40 && i > 0)\n i--;\n byte[i] &= 0x7f;\n if (negative)\n@@ -953,7 +953,7 @@ bit_...
c
CWE-125
[ "src/bits.c" ]
src/bits.c
1
import subprocess import syslog from jadi import component, service, interface import aj from aj.api.http import BaseHttpHandler class OSAuthenticationProvider(AuthenticationProvider): def authenticate(self, username, password): child = None try: child = pexpect.spawn('/bin/sh', ['-c'...
import subprocess import syslog from jadi import component, service, interface from six import PY3 import aj from aj.api.http import BaseHttpHandler class OSAuthenticationProvider(AuthenticationProvider): def authenticate(self, username, password): child = None if PY3: from shlex imp...
CVE-2019-25066
{'CWE-78'}
6.4
{'https://github.com/ajenti/ajenti/commit/7aa146b724e0e20cfee2c71ca78fafbf53a8767c'}
nvd
A vulnerability has been found in ajenti 2.1.31 and classified as critical. This vulnerability affects unknown code of the component API. The manipulation leads to privilege escalation. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.1.32 is abl...
2022-06-09
1
https://github.com/ajenti/ajenti
https://github.com/ajenti/ajenti/commit/7aa146b724e0e20cfee2c71ca78fafbf53a8767c
7aa146b724e0e20cfee2c71ca78fafbf53a8767c
SINGLE
['7aa146b724e0e20cfee2c71ca78fafbf53a8767c']
{'ef385f96d7e9e09b81ca5e48dc4e04042d5a74a4'}
7aa146b724e0e20cfee2c71ca78fafbf53a8767c
1
10/05/2019, 14:06:48
fixed shell injection in os auth provider
Eugene Pankov
null
{'additions': 8, 'deletions': 1, 'total': 9}
[ { "additions": 8, "changes": 9, "deletions": 1, "patch": "@@ -5,6 +5,7 @@\n import subprocess\n import syslog\n from jadi import component, service, interface\n+from six import PY3\n \n import aj\n from aj.api.http import BaseHttpHandler\n@@ -99,8 +100,14 @@ class OSAuthenticationProvider(Authentica...
py
CWE-78
[ "ajenti-core/aj/auth.py" ]
ajenti-core/aj/auth.py
1
protected function abort($args = array()) **/ protected function get_remote_contents(&$url, $timeout = 30, $redirect_max = 5, $ua = 'Mozilla/5.0', $fp = null) { $method = (function_exists('curl_exec') && !ini_get('safe_mode') && !ini_get('open_basedir')) ? 'curl_get_contents' : 'fsock_get_contents...
protected function abort($args = array()) **/ protected function get_remote_contents(&$url, $timeout = 30, $redirect_max = 5, $ua = 'Mozilla/5.0', $fp = null) { if (preg_match('~^(?:ht|f)tps?://[-_.!\~*\'()a-z0-9;/?:\@&=+\$,%#\*]+~i', $url)) { $method = (function_exists('curl_exec') &&...
CVE-2019-5884
{'CWE-200'}
2.9
{'https://github.com/Studio-42/elFinder/commit/f133163f2d754584de65d718b2fde96191557316'}
nvd
php/elFinder.class.php in elFinder before 2.1.45 leaks information if PHP's curl extension is enabled and safe_mode or open_basedir is not set.
2019-01-10
1
https://github.com/Studio-42/elFinder
https://github.com/Studio-42/elFinder/commit/f133163f2d754584de65d718b2fde96191557316
f133163f2d754584de65d718b2fde96191557316
SINGLE
['f133163f2d754584de65d718b2fde96191557316']
{'15dc92ae485a88c1f8811404069aa0e09ae3e1ba'}
f133163f2d754584de65d718b2fde96191557316
1
01/09/2019, 07:59:37
[php:core:security] fix information leakage vulnerability elFinder <= 2.1.44 PHP connector has high severity security vulnerability to information leakage. This vulnerability is affected on environments in which the curl extension of PHP is enabled and safe_mode or open_basedir is not set. To fix this vulnerability ...
nao-pon
null
{'additions': 18, 'deletions': 14, 'total': 32}
[ { "additions": 18, "changes": 32, "deletions": 14, "patch": "@@ -2395,8 +2395,11 @@ protected function abort($args = array())\n **/\n protected function get_remote_contents(&$url, $timeout = 30, $redirect_max = 5, $ua = 'Mozilla/5.0', $fp = null)\n {\n- $method = (function_exists...
php
CWE-200
[ "php/elFinder.class.php" ]
php/elFinder.class.php
1
return; } $monitor = dbFetchMonitor ( $mid ); $plugin = $_REQUEST['pl']; $plugin_path = dirname(ZM_PLUGINS_CONFIG_PATH)."/".$plugin; function pLang($name) <body> <div id="page"> <div id="header"> <h2><?php echo translate('Monitor') ?> <?php echo $monitor['Name'] ?> - <?php echo translate('Zone') ?> <?...
return; } $monitor = dbFetchMonitor ( $mid ); // Only allow certain filename characters (not including a period) to prevent directory traversal. $plugin = preg_replace('/[^-a-zA-Z0-9]/', '', $_REQUEST['pl']); $plugin_path = dirname(ZM_PLUGINS_CONFIG_PATH)."/".$plugin; function pLang($name) <body> <div id="page"...
CVE-2019-6777
{'CWE-79'}
2.9
{'https://github.com/mnoorenberghe/ZoneMinder/commit/59cc65411f02c7e39a270fda3ecb4966d7b48d41'}
nvd
An issue was discovered in ZoneMinder v1.32.3. Reflected XSS exists in web/skins/classic/views/plugin.php via the zm/index.php?view=plugin pl parameter.
2019-01-24
1
https://github.com/mnoorenberghe/ZoneMinder
https://github.com/mnoorenberghe/ZoneMinder/commit/59cc65411f02c7e39a270fda3ecb4966d7b48d41
59cc65411f02c7e39a270fda3ecb4966d7b48d41
SINGLE
['59cc65411f02c7e39a270fda3ecb4966d7b48d41']
{'e53678f86982c5fce88c9f6a704847db419108c0'}
59cc65411f02c7e39a270fda3ecb4966d7b48d41
1
01/24/2019, 03:40:38
plugin.php: Fix XSS and directory traversal bugs. Fixes #2436 This view seems like dead code so maybe it should be removed instead.
Matthew Noorenberghe
null
{'additions': 4, 'deletions': 3, 'total': 7}
[ { "additions": 4, "changes": 7, "deletions": 3, "patch": "@@ -36,7 +36,8 @@\n return;\n }\n $monitor = dbFetchMonitor ( $mid );\n-$plugin = $_REQUEST['pl'];\n+// Only allow certain filename characters (not including a period) to prevent directory traversal.\n+$plugin = preg_replace('/[^-a-zA-Z0-9...
php
CWE-79
[ "web/skins/classic/views/plugin.php" ]
web/skins/classic/views/plugin.php
1
static int kvm_ioctl_create_device(struct kvm *kvm, if (ops->init) ops->init(dev); ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(dev); return ret; } kvm_get_kvm(kvm)...
static int kvm_ioctl_create_device(struct kvm *kvm, if (ops->init) ops->init(dev); kvm_get_kvm(kvm); ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { kvm_put_kvm(kvm); mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(de...
CVE-2019-6974
{'CWE-416', 'CWE-362'}
6.4
{'https://github.com/torvalds/linux/commit/cfa39381173d5f969daf43582c95ad679189cbc9'}
nvd
In the Linux kernel before 4.20.8, kvm_ioctl_create_device in virt/kvm/kvm_main.c mishandles reference counting because of a race condition, leading to a use-after-free.
2019-02-15
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/cfa39381173d5f969daf43582c95ad679189cbc9
cfa39381173d5f969daf43582c95ad679189cbc9
SINGLE
['cfa39381173d5f969daf43582c95ad679189cbc9']
{'8834f5600cf3c8db365e18a3d5cac2c2780c81e5'}
cfa39381173d5f969daf43582c95ad679189cbc9
1
01/26/2019, 00:54:33
kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974) kvm_ioctl_create_device() does the following: 1. creates a device that holds a reference to the VM object (with a borrowed reference, the VM's refcount has not been bumped yet) 2. initializes the device 3. transfers the reference to the device t...
Jann Horn
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -3000,16 +3000,17 @@ static int kvm_ioctl_create_device(struct kvm *kvm,\n \tif (ops->init)\n \t\tops->init(dev);\n \n+\tkvm_get_kvm(kvm);\n \tret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC);\n \tif (ret < 0) {...
c
CWE-416
[ "virt/kvm/kvm_main.c" ]
virt/kvm/kvm_main.c
1
static int kvm_ioctl_create_device(struct kvm *kvm, if (ops->init) ops->init(dev); ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(dev); return ret; } kvm_get_kvm(kvm)...
static int kvm_ioctl_create_device(struct kvm *kvm, if (ops->init) ops->init(dev); kvm_get_kvm(kvm); ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { kvm_put_kvm(kvm); mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(de...
CVE-2019-6974
{'CWE-416', 'CWE-362'}
6.4
{'https://github.com/torvalds/linux/commit/cfa39381173d5f969daf43582c95ad679189cbc9'}
nvd
In the Linux kernel before 4.20.8, kvm_ioctl_create_device in virt/kvm/kvm_main.c mishandles reference counting because of a race condition, leading to a use-after-free.
2019-02-15
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/cfa39381173d5f969daf43582c95ad679189cbc9
cfa39381173d5f969daf43582c95ad679189cbc9
SINGLE
['cfa39381173d5f969daf43582c95ad679189cbc9']
{'8834f5600cf3c8db365e18a3d5cac2c2780c81e5'}
cfa39381173d5f969daf43582c95ad679189cbc9
1
01/26/2019, 00:54:33
kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974) kvm_ioctl_create_device() does the following: 1. creates a device that holds a reference to the VM object (with a borrowed reference, the VM's refcount has not been bumped yet) 2. initializes the device 3. transfers the reference to the device t...
Jann Horn
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -3000,16 +3000,17 @@ static int kvm_ioctl_create_device(struct kvm *kvm,\n \tif (ops->init)\n \t\tops->init(dev);\n \n+\tkvm_get_kvm(kvm);\n \tret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC);\n \tif (ret < 0) {...
c
CWE-362
[ "virt/kvm/kvm_main.c" ]
virt/kvm/kvm_main.c
1
foreach( $zones as $zone ) { ?> <tr> <td class="colName"><?php echo makePopupLink('?view=zone&mid=' . $mid . '&zid=' . $zone['Id'], 'zmZone', array('zone', $monitor->Width(), $monitor->Height()), $zone['Name'], true, 'onclick="streamCmdQuit( true ); return( false );"'); ?></td> ...
foreach( $zones as $zone ) { ?> <tr> <td class="colName"><?php echo makePopupLink('?view=zone&mid=' . $mid . '&zid=' . $zone['Id'], 'zmZone', array('zone', $monitor->Width(), $monitor->Height()), validHtmlStr($zone['Name']), true, 'onclick="streamCmdQuit( true ); return( false );"'); ?></td> ...
CVE-2019-6990
{'CWE-79'}
2.9
{'https://github.com/ZoneMinder/zoneminder/commit/a3e8fd4fd5b579865f35aac3b964bc78d5b7a94a'}
nvd
A stored-self XSS exists in web/skins/classic/views/zones.php of ZoneMinder through 1.32.3, allowing an attacker to execute HTML or JavaScript code in a vulnerable field via a crafted Zone NAME to the index.php?view=zones&action=zoneImage&mid=1 URI.
2019-01-28
1
https://github.com/ZoneMinder/zoneminder
https://github.com/ZoneMinder/zoneminder/commit/a3e8fd4fd5b579865f35aac3b964bc78d5b7a94a
a3e8fd4fd5b579865f35aac3b964bc78d5b7a94a
SINGLE
['a3e8fd4fd5b579865f35aac3b964bc78d5b7a94a']
{'03590226ac02c99c7b5d9929a0c6069f91d4a1c3'}
a3e8fd4fd5b579865f35aac3b964bc78d5b7a94a
1
01/25/2019, 07:40:08
Fix zones.php self-xss. Fixes #2444
Matthew Noorenberghe
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -74,8 +74,8 @@\n foreach( $zones as $zone ) {\n ?>\n <tr>\n- <td class=\"colName\"><?php echo makePopupLink('?view=zone&mid=' . $mid . '&zid=' . $zone['Id'], 'zmZone', array('zone', $monitor->Width(), $monitor->Hei...
php
CWE-79
[ "web/skins/classic/views/zones.php" ]
web/skins/classic/views/zones.php
1
static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, if (pcd_table[i] == (PCDTable *) NULL) { buffer=(unsigned char *) RelinquishMagickMemory(buffer); ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); } static MagickBooleanTy...
static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, if (pcd_table[i] == (PCDTable *) NULL) { buffer=(unsigned char *) RelinquishMagickMemory(buffer); for (j=0; j < i; j++) pcd_table[j]=(PCDTable *) RelinquishMagickMemory(pcd_table[j]); ThrowBinaryException...
CVE-2019-7175
{'CWE-401'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/1e6a3ace073c9ec9c71e439c111d23c6e66cb6ae'}
nvd
In ImageMagick before 7.0.8-25, some memory leaks exist in DecodeImage in coders/pcd.c.
2019-03-07
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/1e6a3ace073c9ec9c71e439c111d23c6e66cb6ae
1e6a3ace073c9ec9c71e439c111d23c6e66cb6ae
SINGLE
['1e6a3ace073c9ec9c71e439c111d23c6e66cb6ae']
{'8a43abefb38c5e29138e1c9c515b313363541c06'}
1e6a3ace073c9ec9c71e439c111d23c6e66cb6ae
1
01/20/2019, 16:11:52
https://github.com/ImageMagick/ImageMagick/issues/1450
Cristy
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -204,6 +204,8 @@ static MagickBooleanType DecodeImage(Image *image,unsigned char *luma,\n if (pcd_table[i] == (PCDTable *) NULL)\n {\n buffer=(unsigned char *) RelinquishMagickMemory(buffer);\n+ for (j=0; j < i; j+...
c
CWE-401
[ "coders/pcd.c" ]
coders/pcd.c
1
public function setFormatter(FormatterInterface $formatter) public function executeQuery() { if ($this->query !== null) { $this->query ->offset($this->offset) ->limit($this->limit) ->orderBy($this->order, $this->direction); if ($t...
public function setFormatter(FormatterInterface $formatter) public function executeQuery() { if ($this->query !== null) { $this->query ->offset($this->offset) ->limit($this->limit); if (preg_match('/^[a-zA-Z0-9._]+$/', $this->order)) { ...
CVE-2019-7324
{'CWE-79'}
2.9
{'https://github.com/kanboard/kanboard/commit/83deec2e3621c40d15a06e2491f27571d32fe10f'}
nvd
app/Core/Paginator.php in Kanboard before 1.2.8 has XSS in pagination sorting.
2019-02-04
1
https://github.com/kanboard/kanboard
https://github.com/kanboard/kanboard/commit/83deec2e3621c40d15a06e2491f27571d32fe10f
83deec2e3621c40d15a06e2491f27571d32fe10f
SINGLE
['83deec2e3621c40d15a06e2491f27571d32fe10f']
{'8cf8f9ef078b31473e9edcb4b9a61a80e3152c0c'}
83deec2e3621c40d15a06e2491f27571d32fe10f
1
01/31/2019, 06:05:43
Avoid XSS in pagination ordering
Frédéric Guillot
null
{'additions': 8, 'deletions': 2, 'total': 10}
[ { "additions": 8, "changes": 10, "deletions": 2, "patch": "@@ -169,10 +169,16 @@ public function setFormatter(FormatterInterface $formatter)\n public function executeQuery()\n {\n if ($this->query !== null) {\n+\n $this->query\n ->offset($this->offset)\n- ...
php
CWE-79
[ "app/Core/Paginator.php" ]
app/Core/Paginator.php
1
static size_t WritePSDChannel(const PSDInfo *psd_info, if (deflateInit(&stream,level) != Z_OK) { quantum_info=DestroyQuantumInfo(quantum_info); return(0); } }
static size_t WritePSDChannel(const PSDInfo *psd_info, if (deflateInit(&stream,level) != Z_OK) { quantum_info=DestroyQuantumInfo(quantum_info); compressed_pixels=(unsigned char *) RelinquishMagickMemory( compressed_pixels); return(0); } }
CVE-2019-7395
{'CWE-401'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/8a43abefb38c5e29138e1c9c515b313363541c06'}
nvd
In ImageMagick before 7.0.8-25, a memory leak exists in WritePSDChannel in coders/psd.c.
2019-02-05
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/8a43abefb38c5e29138e1c9c515b313363541c06
8a43abefb38c5e29138e1c9c515b313363541c06
SINGLE
['8a43abefb38c5e29138e1c9c515b313363541c06']
{'748a03651e5b138bcaf160d15133de2f4b1b89ce'}
8a43abefb38c5e29138e1c9c515b313363541c06
1
01/20/2019, 16:04:31
https://github.com/ImageMagick/ImageMagick/issues/1451
Cristy
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -2782,6 +2782,8 @@ static size_t WritePSDChannel(const PSDInfo *psd_info,\n if (deflateInit(&stream,level) != Z_OK)\n {\n quantum_info=DestroyQuantumInfo(quantum_info);\n+ compressed_pixels=(unsigned char *...
c
CWE-401
[ "coders/psd.c" ]
coders/psd.c
1
static Image *ReadSIXELImage(const ImageInfo *image_info,ExceptionInfo *exceptio if (sixel_decode(image,(unsigned char *) sixel_buffer,&sixel_pixels,&image->columns,&image->rows,&sixel_palette,&image->colors,exception) == MagickFalse) { sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer); Thro...
static Image *ReadSIXELImage(const ImageInfo *image_info,ExceptionInfo *exceptio if (sixel_decode(image,(unsigned char *) sixel_buffer,&sixel_pixels,&image->columns,&image->rows,&sixel_palette,&image->colors,exception) == MagickFalse) { sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer); sixe...
CVE-2019-7396
{'CWE-401'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/748a03651e5b138bcaf160d15133de2f4b1b89ce'}
nvd
In ImageMagick before 7.0.8-25, a memory leak exists in ReadSIXELImage in coders/sixel.c.
2019-02-05
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/748a03651e5b138bcaf160d15133de2f4b1b89ce
748a03651e5b138bcaf160d15133de2f4b1b89ce
SINGLE
['748a03651e5b138bcaf160d15133de2f4b1b89ce']
{'f14f66d2a2cca4d43faa2b181af9f6f4037621d9'}
748a03651e5b138bcaf160d15133de2f4b1b89ce
1
01/20/2019, 16:01:24
https://github.com/ImageMagick/ImageMagick/issues/1452
Cristy
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1057,6 +1057,7 @@ static Image *ReadSIXELImage(const ImageInfo *image_info,ExceptionInfo *exceptio\n if (sixel_decode(image,(unsigned char *) sixel_buffer,&sixel_pixels,&image->columns,&image->rows,&sixel_palette,&image->colors,exceptio...
c
CWE-401
[ "coders/sixel.c" ]
coders/sixel.c
1
RestoreMSCWarning status=InjectImageBlob(image_info,image,image,"jpeg",exception); if (status == MagickFalse) { (void) CloseBlob(image); return(MagickFalse); } RestoreMSCWarning status=InjectImageBlob(image_info,image,image...
RestoreMSCWarning status=InjectImageBlob(image_info,image,image,"jpeg",exception); if (status == MagickFalse) { xref=(MagickOffsetType *) RelinquishMagickMemory(xref); (void) CloseBlob(image); return(MagickFalse); } Res...
CVE-2019-7397
{'CWE-401'}
2.9
{'https://github.com/ImageMagick/ImageMagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82'}
nvd
In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
2019-02-05
1
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82
306c1f0fa5754ca78efd16ab752f0e981d4f6b82
SINGLE
['306c1f0fa5754ca78efd16ab752f0e981d4f6b82']
{'d8bcdf1138d422274359da8d775514dee936495a'}
306c1f0fa5754ca78efd16ab752f0e981d4f6b82
1
01/20/2019, 15:17:27
https://github.com/ImageMagick/ImageMagick/issues/1454
Cristy
null
{'additions': 17, 'deletions': 9, 'total': 26}
[ { "additions": 17, "changes": 26, "deletions": 9, "patch": "@@ -1901,6 +1901,7 @@ RestoreMSCWarning\n status=InjectImageBlob(image_info,image,image,\"jpeg\",exception);\n if (status == MagickFalse)\n {\n+ xref=(MagickOffsetType *) RelinquishMagick...
c
CWE-401
[ "coders/pdf.c" ]
coders/pdf.c
1
$ready = true; }else{ echo "was not an image<br>"; } if($_FILES["fileUpload"]["size"] < 1000000){ $ready = true; echo "file size is ".$_FILES['fileUpload']["size"]."<br>"; }else{ echo "file was TOO BIG!"; } if...
$ready = true; }else{ echo "was not an image<br>"; exit(); } if($_FILES["fileUpload"]["size"] < 1000000){ $ready = true; echo "file size is ".$_FILES['fileUpload']["size"]."<br>"; }else{ echo "file was TOO BIG!"; ...
CVE-2019-8293
{'CWE-434'}
6.4
{'https://github.com/abcprintf/upload-image-with-ajax/commit/71436ba5102010397519d4b25ea57591cfb4974c'}
nvd
Due to a logic error in the code, upload-image-with-ajax v1.0 allows arbitrary files to be uploaded to the web root allowing code execution.
2019-12-23
1
https://github.com/abcprintf/upload-image-with-ajax
https://github.com/abcprintf/upload-image-with-ajax/commit/71436ba5102010397519d4b25ea57591cfb4974c
71436ba5102010397519d4b25ea57591cfb4974c
SINGLE
['71436ba5102010397519d4b25ea57591cfb4974c']
{'c644d0d696df39b469e887b4d32650a93b1e0433'}
71436ba5102010397519d4b25ea57591cfb4974c
1
12/19/2019, 05:16:03
update #Arbitrary file upload vulnerability
Mix Abcprintf
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -9,25 +9,29 @@\n $ready = true;\r\n }else{\r\n echo \"was not an image<br>\";\r\n+ exit();\r\n }\r\n \r\n if($_FILES[\"fileUpload\"][\"size\"] < 1000000){\r\n $ready = ...
php
CWE-434
[ "upload.php" ]
upload.php
1
#include "file.h" #ifndef lint FILE_RCSID("@(#)$File: readelf.c,v 1.156 2018/10/19 00:33:04 christos Exp $") #endif #ifdef BUILTIN_ELF do_core_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, char sbuf[512]; struct NetBSD_elfcore_procinfo pi; memset(&pi, 0, sizeof(pi)); memcpy(&pi, nbuf + d...
#include "file.h" #ifndef lint FILE_RCSID("@(#)$File: readelf.c,v 1.157 2019/01/02 19:44:14 christos Exp $") #endif #ifdef BUILTIN_ELF do_core_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, char sbuf[512]; struct NetBSD_elfcore_procinfo pi; memset(&pi, 0, sizeof(pi)); memcpy(&pi, nbuf + d...
CVE-2019-8906
{'CWE-125'}
4.9
{'https://github.com/file/file/commit/2858eaf99f6cc5aae129bcbf1e24ad160240185f'}
nvd
do_core_note in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
2019-02-18
1
https://github.com/file/file
https://github.com/file/file/commit/2858eaf99f6cc5aae129bcbf1e24ad160240185f
2858eaf99f6cc5aae129bcbf1e24ad160240185f
SINGLE
['2858eaf99f6cc5aae129bcbf1e24ad160240185f']
{'580927e7a376c3c46709a0be201e16b351fd7e20'}
2858eaf99f6cc5aae129bcbf1e24ad160240185f
1
01/02/2019, 19:44:14
Avoid OOB read (found by ASAN reported by F. Alonso)
Christos Zoulas
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -27,7 +27,7 @@\n #include \"file.h\"\n \n #ifndef lint\n-FILE_RCSID(\"@(#)$File: readelf.c,v 1.156 2018/10/19 00:33:04 christos Exp $\")\n+FILE_RCSID(\"@(#)$File: readelf.c,v 1.157 2019/01/02 19:44:14 christos Exp $\")\n #endif\n \n #ifdef...
c
CWE-125
[ "src/readelf.c" ]
src/readelf.c
1
EXPORT_SYMBOL(ipmi_get_smi_info); static void free_user(struct kref *ref) { struct ipmi_user *user = container_of(ref, struct ipmi_user, refcount); kfree(user); } int ipmi_destroy_user(struct ipmi_user *user) { _ipmi_destroy_user(user); cleanup_srcu_struct(&user->release_barrier); kref_put(&user->refcount, free...
EXPORT_SYMBOL(ipmi_get_smi_info); static void free_user(struct kref *ref) { struct ipmi_user *user = container_of(ref, struct ipmi_user, refcount); cleanup_srcu_struct(&user->release_barrier); kfree(user); } int ipmi_destroy_user(struct ipmi_user *user) { _ipmi_destroy_user(user); kref_put(&user->refcount, free...
CVE-2019-9003
{'CWE-416'}
6.9
{'https://github.com/torvalds/linux/commit/77f8269606bf95fcb232ee86f6da80886f1dfae8'}
nvd
In the Linux kernel before 4.20.5, attackers can trigger a drivers/char/ipmi/ipmi_msghandler.c use-after-free and OOPS by arranging for certain simultaneous execution of the code, as demonstrated by a "service ipmievd restart" loop.
2019-02-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/77f8269606bf95fcb232ee86f6da80886f1dfae8
77f8269606bf95fcb232ee86f6da80886f1dfae8
SINGLE
['77f8269606bf95fcb232ee86f6da80886f1dfae8']
{'479d6b39b9e0d2de648ebf146f23a1e40962068f'}
77f8269606bf95fcb232ee86f6da80886f1dfae8
1
01/16/2019, 05:33:22
ipmi: fix use-after-free of user->release_barrier.rda When we do the following test, we got oops in ipmi_msghandler driver while((1)) do service ipmievd restart & service ipmievd restart done --------------------------------------------------------------- [ 294.230186] Unable to handle kernel paging request at virt...
Yang Yingliang
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1184,6 +1184,7 @@ EXPORT_SYMBOL(ipmi_get_smi_info);\n static void free_user(struct kref *ref)\n {\n \tstruct ipmi_user *user = container_of(ref, struct ipmi_user, refcount);\n+\tcleanup_srcu_struct(&user->release_barrier);\n \tkfree(user)...
c
CWE-416
[ "drivers/char/ipmi/ipmi_msghandler.c" ]
drivers/char/ipmi/ipmi_msghandler.c
1
static void fast_csum(struct snmp_ctx *ctx, unsigned char offset) int snmp_version(void *context, size_t hdrlen, unsigned char tag, const void *data, size_t datalen) { if (*(unsigned char *)data > 1) return -ENOTSUPP; return 1; int snmp_helper(void *context, size_t hdrlen, unsigned char tag, const void *data,...
static void fast_csum(struct snmp_ctx *ctx, unsigned char offset) int snmp_version(void *context, size_t hdrlen, unsigned char tag, const void *data, size_t datalen) { if (datalen != 1) return -EINVAL; if (*(unsigned char *)data > 1) return -ENOTSUPP; return 1; int snmp_helper(void *context, size_t hdrlen, u...
CVE-2019-9162
{'CWE-787'}
6.4
{'https://github.com/torvalds/linux/commit/c4c07b4d6fa1f11880eab8e076d3d060ef3f55fc'}
nvd
In the Linux kernel before 4.20.12, net/ipv4/netfilter/nf_nat_snmp_basic_main.c in the SNMP NAT module has insufficient ASN.1 length checks (aka an array index error), making out-of-bounds read and write operations possible, leading to an OOPS or local privilege escalation. This affects snmp_version and snmp_helper.
2019-02-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c4c07b4d6fa1f11880eab8e076d3d060ef3f55fc
c4c07b4d6fa1f11880eab8e076d3d060ef3f55fc
SINGLE
['c4c07b4d6fa1f11880eab8e076d3d060ef3f55fc']
{'31b58ad0c3279817cd246eab27eaf53b626dfcde'}
c4c07b4d6fa1f11880eab8e076d3d060ef3f55fc
1
02/06/2019, 21:56:15
netfilter: nf_nat_snmp_basic: add missing length checks in ASN.1 cbs The generic ASN.1 decoder infrastructure doesn't guarantee that callbacks will get as much data as they expect; callbacks have to check the `datalen` parameter before looking at `data`. Make sure that snmp_version() and snmp_helper() don't read/write...
Jann Horn
null
{'additions': 6, 'deletions': 1, 'total': 7}
[ { "additions": 6, "changes": 7, "deletions": 1, "patch": "@@ -105,6 +105,8 @@ static void fast_csum(struct snmp_ctx *ctx, unsigned char offset)\n int snmp_version(void *context, size_t hdrlen, unsigned char tag,\n \t\t const void *data, size_t datalen)\n {\n+\tif (datalen != 1)\n+\t\treturn -EINVAL;...
c
CWE-787
[ "net/ipv4/netfilter/nf_nat_snmp_basic_main.c" ]
net/ipv4/netfilter/nf_nat_snmp_basic_main.c
1
int expand_downwards(struct vm_area_struct *vma, { struct mm_struct *mm = vma->vm_mm; struct vm_area_struct *prev; int error; address &= PAGE_MASK; error = security_mmap_addr(address); if (error) return error; /* Enforce stack_guard_gap */ prev = vma->vm_prev;
int expand_downwards(struct vm_area_struct *vma, { struct mm_struct *mm = vma->vm_mm; struct vm_area_struct *prev; int error = 0; address &= PAGE_MASK; if (address < mmap_min_addr) return -EPERM; /* Enforce stack_guard_gap */ prev = vma->vm_prev;
CVE-2019-9213
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/0a1d52994d440e21def1c2174932410b4f2a98a1'}
nvd
In the Linux kernel before 4.20.14, expand_downwards in mm/mmap.c lacks a check for the mmap minimum address, which makes it easier for attackers to exploit kernel NULL pointer dereferences on non-SMAP platforms. This is related to a capability check for the wrong task.
2019-03-05
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0a1d52994d440e21def1c2174932410b4f2a98a1
0a1d52994d440e21def1c2174932410b4f2a98a1
SINGLE
['0a1d52994d440e21def1c2174932410b4f2a98a1']
{'7d762d69145a54d169f58e56d6dac57a5508debc'}
0a1d52994d440e21def1c2174932410b4f2a98a1
1
02/27/2019, 20:29:52
mm: enforce min addr even if capable() in expand_downwards() security_mmap_addr() does a capability check with current_cred(), but we can reach this code from contexts like a VFS write handler where current_cred() must not be used. This can be abused on systems without SMAP to make NULL pointer dereferences exploitab...
Jann Horn
null
{'additions': 3, 'deletions': 4, 'total': 7}
[ { "additions": 3, "changes": 7, "deletions": 4, "patch": "@@ -2426,12 +2426,11 @@ int expand_downwards(struct vm_area_struct *vma,\n {\n \tstruct mm_struct *mm = vma->vm_mm;\n \tstruct vm_area_struct *prev;\n-\tint error;\n+\tint error = 0;\n \n \taddress &= PAGE_MASK;\n-\terror = security_mmap_addr...
c
CWE-476
[ "mm/mmap.c" ]
mm/mmap.c
1
exif_data_load_data_entry (ExifData *data, ExifEntry *entry, doff = offset + 8; /* Sanity checks */ if ((doff + s < doff) || (doff + s < s) || (doff + s > size)) { exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "Tag data past end of buffer (%u > %u)", doff+s, size); return 0; } exif_data...
exif_data_load_data_entry (ExifData *data, ExifEntry *entry, doff = offset + 8; /* Sanity checks */ if (doff >= size) { exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "Tag starts past end of buffer (%u > %u)", doff, size); return 0; } if (s > size - doff) { exif_log (data->priv->log, E...
CVE-2019-9278
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/libexif/libexif/commit/75aa73267fdb1e0ebfbc00369e7312bac43d0566'}
nvd
In libexif, there is a possible out of bounds write due to an integer overflow. This could lead to remote escalation of privilege in the media content provider with no additional execution privileges needed. User interaction is needed for exploitation. Product: AndroidVersions: Android-10Android ID: A-112537774
2019-09-27
1
https://github.com/libexif/libexif
https://github.com/libexif/libexif/commit/75aa73267fdb1e0ebfbc00369e7312bac43d0566
75aa73267fdb1e0ebfbc00369e7312bac43d0566
SINGLE
['75aa73267fdb1e0ebfbc00369e7312bac43d0566']
{'da025b3b85f076f8739ce3046c1de87f8670795c'}
75aa73267fdb1e0ebfbc00369e7312bac43d0566
1
01/18/2020, 08:29:42
fix CVE-2019-9278 avoid the use of unsafe integer overflow checking constructs (unsigned integer operations cannot overflow, so "u1 + u2 > u1" can be optimized away) check for the actual sizes, which should also handle the overflows document other places google patched, but do not seem relevant due to other restricti...
Marcus Meissner
{'com_1': {'author': 'kloczek', 'datetime': '02/09/2020, 14:29:24', 'body': 'Any plans to make new release after that patch?'}}
{'additions': 18, 'deletions': 10, 'total': 28}
[ { "additions": 18, "changes": 28, "deletions": 10, "patch": "@@ -192,9 +192,15 @@ exif_data_load_data_entry (ExifData *data, ExifEntry *entry,\n \t\tdoff = offset + 8;\n \n \t/* Sanity checks */\n-\tif ((doff + s < doff) || (doff + s < s) || (doff + s > size)) {\n+\tif (doff >= size) {\n \t\texif_lo...
c
CWE-787
[ "libexif/exif-data.c" ]
libexif/exif-data.c
1
exif_data_load_data_entry (ExifData *data, ExifEntry *entry, doff = offset + 8; /* Sanity checks */ if ((doff + s < doff) || (doff + s < s) || (doff + s > size)) { exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "Tag data past end of buffer (%u > %u)", doff+s, size); return 0; } exif_data...
exif_data_load_data_entry (ExifData *data, ExifEntry *entry, doff = offset + 8; /* Sanity checks */ if (doff >= size) { exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "Tag starts past end of buffer (%u > %u)", doff, size); return 0; } if (s > size - doff) { exif_log (data->priv->log, E...
CVE-2019-9278
{'CWE-190', 'CWE-787'}
6.4
{'https://github.com/libexif/libexif/commit/75aa73267fdb1e0ebfbc00369e7312bac43d0566'}
nvd
In libexif, there is a possible out of bounds write due to an integer overflow. This could lead to remote escalation of privilege in the media content provider with no additional execution privileges needed. User interaction is needed for exploitation. Product: AndroidVersions: Android-10Android ID: A-112537774
2019-09-27
1
https://github.com/libexif/libexif
https://github.com/libexif/libexif/commit/75aa73267fdb1e0ebfbc00369e7312bac43d0566
75aa73267fdb1e0ebfbc00369e7312bac43d0566
SINGLE
['75aa73267fdb1e0ebfbc00369e7312bac43d0566']
{'da025b3b85f076f8739ce3046c1de87f8670795c'}
75aa73267fdb1e0ebfbc00369e7312bac43d0566
1
01/18/2020, 08:29:42
fix CVE-2019-9278 avoid the use of unsafe integer overflow checking constructs (unsigned integer operations cannot overflow, so "u1 + u2 > u1" can be optimized away) check for the actual sizes, which should also handle the overflows document other places google patched, but do not seem relevant due to other restricti...
Marcus Meissner
{'com_1': {'author': 'kloczek', 'datetime': '02/09/2020, 14:29:24', 'body': 'Any plans to make new release after that patch?'}}
{'additions': 18, 'deletions': 10, 'total': 28}
[ { "additions": 18, "changes": 28, "deletions": 10, "patch": "@@ -192,9 +192,15 @@ exif_data_load_data_entry (ExifData *data, ExifEntry *entry,\n \t\tdoff = offset + 8;\n \n \t/* Sanity checks */\n-\tif ((doff + s < doff) || (doff + s < s) || (doff + s > size)) {\n+\tif (doff >= size) {\n \t\texif_lo...
c
CWE-190
[ "libexif/exif-data.c" ]
libexif/exif-data.c
1
static void rstrip_spaces_buf(AVBPrint *buf) buf->str[--buf->len] = 0; } int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in) { char *param, buffer[128], tmp[128]; int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in) case '<': tag_close = in[1] =...
static void rstrip_spaces_buf(AVBPrint *buf) buf->str[--buf->len] = 0; } /* * Fast code for scanning the rest of a tag. Functionally equivalent to * this sscanf call: * * sscanf(in, "%127[^<>]>%n", buffer, lenp) == 2 */ static int scantag(const char* in, char* buffer, int* lenp) { int len; f...
CVE-2019-9718
{'CWE-125'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/23ccf3cabb4baf6e8af4b1af3fcc59c904736f21'}
nvd
In FFmpeg 3.2 and 4.1, a denial of service in the subtitle decoder allows attackers to hog the CPU via a crafted video file in Matroska format, because ff_htmlmarkup_to_ass in libavcodec/htmlsubtitles.c has a complex format argument to sscanf.
2019-03-12
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/23ccf3cabb4baf6e8af4b1af3fcc59c904736f21
23ccf3cabb4baf6e8af4b1af3fcc59c904736f21
SINGLE
['23ccf3cabb4baf6e8af4b1af3fcc59c904736f21']
{'abdbbe895838a55a404d54f7b26a4aca23d19577'}
23ccf3cabb4baf6e8af4b1af3fcc59c904736f21
1
02/06/2019, 11:29:22
avcodec/htmlsubtitles: Fixes denial of service due to use of sscanf in inner loop for tag scaning Fixes: [Semmle Security Reports #19438] Fixes: dos_sscanf1.mkv Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 1f00c97bc3475c477f3c468cf2d924d5761d0982) Signed-off-by: Michael Niede...
Kevin Backhouse via RT
null
{'additions': 29, 'deletions': 1, 'total': 30}
[ { "additions": 29, "changes": 30, "deletions": 1, "patch": "@@ -51,6 +51,34 @@ static void rstrip_spaces_buf(AVBPrint *buf)\n buf->str[--buf->len] = 0;\n }\n \n+/*\n+ * Fast code for scanning the rest of a tag. Functionally equivalent to\n+ * this sscanf call:\n+ *\n+ * sscanf(in, \"%127...
c
CWE-125
[ "libavcodec/htmlsubtitles.c" ]
libavcodec/htmlsubtitles.c
1
#include "libavutil/common.h" #include "libavutil/parseutils.h" #include "htmlsubtitles.h" static int html_color_parse(void *log_ctx, const char *str) { static void rstrip_spaces_buf(AVBPrint *buf) buf->str[--buf->len] = 0; } /* * Fast code for scanning the rest of a tag. Functionally equivalent to * t...
#include "libavutil/common.h" #include "libavutil/parseutils.h" #include "htmlsubtitles.h" #include <ctype.h> static int html_color_parse(void *log_ctx, const char *str) { static void rstrip_spaces_buf(AVBPrint *buf) buf->str[--buf->len] = 0; } /* * Fast code for scanning text enclosed in braces. Functi...
CVE-2019-9721
{'CWE-125'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/273f2755ce8635d42da3cde0eeba15b2e7842774'}
nvd
A denial of service in the subtitle decoder in FFmpeg 3.2 and 4.1 allows attackers to hog the CPU via a crafted video file in Matroska format, because handle_open_brace in libavcodec/htmlsubtitles.c has a complex format argument to sscanf.
2019-03-12
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/273f2755ce8635d42da3cde0eeba15b2e7842774
273f2755ce8635d42da3cde0eeba15b2e7842774
SINGLE
['273f2755ce8635d42da3cde0eeba15b2e7842774']
{'23ccf3cabb4baf6e8af4b1af3fcc59c904736f21'}
273f2755ce8635d42da3cde0eeba15b2e7842774
1
02/06/2019, 12:56:01
avcodec/htmlsubtitles: Fixes denial of service due to use of sscanf in inner loop for handling braces Fixes: [Semmle Security Reports #19439] Fixes: dos_sscanf2.mkv Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 894995c41e0795c7a44f81adc4838dedc3932e65) Signed-off-by: Michael N...
Kevin Backhouse via RT
null
{'additions': 21, 'deletions': 3, 'total': 24}
[ { "additions": 21, "changes": 24, "deletions": 3, "patch": "@@ -22,6 +22,7 @@\n #include \"libavutil/common.h\"\n #include \"libavutil/parseutils.h\"\n #include \"htmlsubtitles.h\"\n+#include <ctype.h>\n \n static int html_color_parse(void *log_ctx, const char *str)\n {\n@@ -51,6 +52,25 @@ static vo...
c
CWE-125
[ "libavcodec/htmlsubtitles.c" ]
libavcodec/htmlsubtitles.c
1
<?php // Init //error_reporting(NULL); include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); include($_SERVER['DOCUMENT_ROOT']."/file_manager/fm_core.php");
<?php // Init //error_reporting(NULL); header('Content-Type: application/json'); include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); include($_SERVER['DOCUMENT_ROOT']."/file_manager/fm_core.php");
CVE-2019-9841
{'CWE-79'}
2.9
{'https://github.com/serghey-rodin/vesta/commit/c28c5d29a3c61bc8110c11349e3f2309cd537cfa'}
nvd
Vesta Control Panel 0.9.8-23 allows XSS via a crafted URL.
2019-04-19
1
https://github.com/serghey-rodin/vesta
https://github.com/serghey-rodin/vesta/commit/c28c5d29a3c61bc8110c11349e3f2309cd537cfa
c28c5d29a3c61bc8110c11349e3f2309cd537cfa
SINGLE
['c28c5d29a3c61bc8110c11349e3f2309cd537cfa']
{'576a0003da1968980ee357c513ffda316e8ba8ac'}
c28c5d29a3c61bc8110c11349e3f2309cd537cfa
1
04/12/2019, 14:20:45
setting content type to fix possible XSS attack vector
Serghey Rodin
{'com_1': {'author': 'AysadKozanoglu', 'datetime': '04/23/2019, 20:41:01', 'body': 'thanks for fixing the issue CVE-2019-9841\r\n\r\nsource \r\nhttps://cardaci.xyz/advisories/2019/04/15/vesta-control-panel-0.9.8-23-reflected-xss-in-file-manager-api/'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1,8 +1,8 @@\n <?php\n-\n // Init\n //error_reporting(NULL);\n \n+header('Content-Type: application/json');\n \n include($_SERVER['DOCUMENT_ROOT'].\"/inc/main.php\");\n include($_SERVER['DOCUMENT_ROOT'].\"/file_manager/fm_core.php\");", ...
php
CWE-79
[ "web/file_manager/fm_api.php" ]
web/file_manager/fm_api.php
1
public function exportMultipleSurveys($sSurveys, $sExportType) public function downloadZip($sZip) { $sTempDir = Yii::app()->getConfig("tempdir"); $aZIPFileName = $sTempDir.DIRECTORY_SEPARATOR.$sZip; if (is_file($aZIPFileName)) {
public function exportMultipleSurveys($sSurveys, $sExportType) public function downloadZip($sZip) { $sTempDir = Yii::app()->getConfig("tempdir"); $sZip = get_absolute_path($sZip); $aZIPFileName = $sTempDir.DIRECTORY_SEPARATOR.$sZip; if (is_file($aZIPFileName)) {
CVE-2019-9960
{'CWE-22'}
6.4
{'https://github.com/LimeSurvey/LimeSurvey/commit/1ed10d3c423187712b8f6a8cb2bc9d5cc3b2deb8'}
nvd
The downloadZip function in application/controllers/admin/export.php in LimeSurvey through 3.16.1+190225 allows a relative path.
2019-03-24
1
https://github.com/LimeSurvey/LimeSurvey
https://github.com/LimeSurvey/LimeSurvey/commit/1ed10d3c423187712b8f6a8cb2bc9d5cc3b2deb8
1ed10d3c423187712b8f6a8cb2bc9d5cc3b2deb8
SINGLE
['1ed10d3c423187712b8f6a8cb2bc9d5cc3b2deb8']
{'9ca364fbdd54ea610ff4c385e7d7701deacd9db4'}
1ed10d3c423187712b8f6a8cb2bc9d5cc3b2deb8
1
03/14/2019, 14:29:43
[security] Fixed issue #14617: relative path allowed in lsa multiple download
LouisGac
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -919,6 +919,7 @@ public function exportMultipleSurveys($sSurveys, $sExportType)\n public function downloadZip($sZip)\n {\n $sTempDir = Yii::app()->getConfig(\"tempdir\");\n+ $sZip = get_absolute_path($sZi...
php
CWE-22
[ "application/controllers/admin/export.php" ]
application/controllers/admin/export.php
1
static int mqtt_handle_packet(struct mqtt_client *client, static int mqtt_read_message_chunk(struct mqtt_client *client, struct buf_ctx *buf, u32_t length) { int remaining; int len; /* Calculate how much data we need to read from the transport, * given the already buffered data. */ remaining = length -...
static int mqtt_handle_packet(struct mqtt_client *client, static int mqtt_read_message_chunk(struct mqtt_client *client, struct buf_ctx *buf, u32_t length) { u32_t remaining; int len; /* In case all data requested has already been buffered, return. */ if (length <= (buf->end - buf->cur)) { return 0; } ...
CVE-2020-10070
{'CWE-120'}
6.4
{'https://github.com/zephyrproject-rtos/zephyr/pull/23821/commits/0b39cbf3c01d7feec9d0dd7cc7e0e374b6113542'}
nvd
In the Zephyr Project MQTT code, improper bounds checking can result in memory corruption and possibly remote code execution. NCC-ZEP-031 This issue affects: zephyrproject-rtos zephyr version 2.2.0 and later versions.
2020-06-05
1
https://github.com/zephyrproject-rtos/zephyr
https://github.com/zephyrproject-rtos/zephyr/pull/23821/commits/0b39cbf3c01d7feec9d0dd7cc7e0e374b6113542
0b39cbf3c01d7feec9d0dd7cc7e0e374b6113542
SINGLE
['0b39cbf3c01d7feec9d0dd7cc7e0e374b6113542']
{'11b7a37d9a0b438270421b224221d91929843de4'}
0b39cbf3c01d7feec9d0dd7cc7e0e374b6113542
1
03/26/2020, 12:36:39
net: mqtt: Improve buffer bounds validation in mqtt_read_message_chunk Verify more strictly that data read from the transport fits into RX buffer. Switch to unsigned integers, where possible, to prevent unnecessary signed/unsigned operations. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
Robert Lubos
null
{'additions': 9, 'deletions': 6, 'total': 15}
[ { "additions": 9, "changes": 15, "deletions": 6, "patch": "@@ -146,20 +146,23 @@ static int mqtt_handle_packet(struct mqtt_client *client,\n static int mqtt_read_message_chunk(struct mqtt_client *client,\n \t\t\t\t struct buf_ctx *buf, u32_t length)\n {\n-\tint remaining;\n+\tu32_t remaining;\n \t...
c
CWE-120
[ "subsys/net/lib/mqtt/mqtt_rx.c" ]
subsys/net/lib/mqtt/mqtt_rx.c
1
static uint8_t YAFFSFS_INFO *yfs = (YAFFSFS_INFO *)fs; char ls[12]; YAFFSFS_PRINT_ADDR print; char timeBuf[32]; YaffsCacheObject * obj = NULL; YaffsCacheVersion * version = NULL; YaffsHeader * header = NULL;
static uint8_t YAFFSFS_INFO *yfs = (YAFFSFS_INFO *)fs; char ls[12]; YAFFSFS_PRINT_ADDR print; char timeBuf[128]; YaffsCacheObject * obj = NULL; YaffsCacheVersion * version = NULL; YaffsHeader * header = NULL;
CVE-2020-10232
{'CWE-787'}
6.4
{'https://github.com/sleuthkit/sleuthkit/commit/459ae818fc8dae717549810150de4d191ce158f1'}
nvd
In version 4.8.0 and earlier of The Sleuth Kit (TSK), there is a stack buffer overflow vulnerability in the YAFFS file timestamp parsing logic in yaffsfs_istat() in fs/yaffs.c.
2020-03-09
1
https://github.com/sleuthkit/sleuthkit
https://github.com/sleuthkit/sleuthkit/commit/459ae818fc8dae717549810150de4d191ce158f1
459ae818fc8dae717549810150de4d191ce158f1
SINGLE
['459ae818fc8dae717549810150de4d191ce158f1']
{'637772e56af0f02925a7136e92b882766dc935ee'}
459ae818fc8dae717549810150de4d191ce158f1
1
02/22/2020, 20:17:25
Fix stack buffer overflow in yaffsfs_istat Prevent a stack buffer overflow in yaffsfs_istat by increasing the buffer size to the size required by tsk_fs_time_to_str.
micrictor
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -2439,7 +2439,7 @@ static uint8_t\n YAFFSFS_INFO *yfs = (YAFFSFS_INFO *)fs;\n char ls[12];\n YAFFSFS_PRINT_ADDR print;\n- char timeBuf[32];\n+ char timeBuf[128];\n YaffsCacheObject * obj = NULL;\n YaffsCacheVersio...
cpp
CWE-787
[ "tsk/fs/yaffs.cpp" ]
tsk/fs/yaffs.cpp
1
S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, RExC_precomp))); } min += minnext * mincount; is_inf_internal |= deltanext == SSize_t_MAX || (maxcount == REG_INFTY && minnext + deltanext > 0);
S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, RExC_precomp))); } if ( ( minnext > 0 && mincount >= SSize_t_MAX / minnext ) || min >= SSize_t_MAX - minnext * mincount ) { FAIL("Regexp out of space"); ...
CVE-2020-10543
{'CWE-190', 'CWE-787'}
4.9
{'https://github.com/perl/perl5/commit/897d1f7fd515b828e4b198d8b8bef76c6faf03ed'}
nvd
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow.
2020-06-05
1
https://github.com/perl/perl5
https://github.com/perl/perl5/commit/897d1f7fd515b828e4b198d8b8bef76c6faf03ed
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
SINGLE
['897d1f7fd515b828e4b198d8b8bef76c6faf03ed']
{'7ece5938f0fb4d8ffab9cc9bd83a133c74dff34f'}
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
1
11/21/2019, 02:02:45
regcomp.c: Prevent integer overflow from nested regex quantifiers. (CVE-2020-10543) On 32bit systems the size calculations for nested regular expression quantifiers could overflow causing heap memory corruption. Fixes: Perl/perl5-security#125 (cherry picked from commit bfd31397db5dc1a5c5d3e0a1f753a4f89a736e71)
John Lightsey
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -5489,6 +5489,12 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp,\n \t\t\t\t RExC_precomp)));\n }\n \n+ if ( ( minnext > 0 && mincount >= SSize_t_MAX / minnext )\n+ || mi...
c
CWE-787
[ "regcomp.c" ]
regcomp.c
1
S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, RExC_precomp))); } min += minnext * mincount; is_inf_internal |= deltanext == SSize_t_MAX || (maxcount == REG_INFTY && minnext + deltanext > 0);
S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp, RExC_precomp))); } if ( ( minnext > 0 && mincount >= SSize_t_MAX / minnext ) || min >= SSize_t_MAX - minnext * mincount ) { FAIL("Regexp out of space"); ...
CVE-2020-10543
{'CWE-190', 'CWE-787'}
4.9
{'https://github.com/perl/perl5/commit/897d1f7fd515b828e4b198d8b8bef76c6faf03ed'}
nvd
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers have an integer overflow.
2020-06-05
1
https://github.com/perl/perl5
https://github.com/perl/perl5/commit/897d1f7fd515b828e4b198d8b8bef76c6faf03ed
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
SINGLE
['897d1f7fd515b828e4b198d8b8bef76c6faf03ed']
{'7ece5938f0fb4d8ffab9cc9bd83a133c74dff34f'}
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
1
11/21/2019, 02:02:45
regcomp.c: Prevent integer overflow from nested regex quantifiers. (CVE-2020-10543) On 32bit systems the size calculations for nested regular expression quantifiers could overflow causing heap memory corruption. Fixes: Perl/perl5-security#125 (cherry picked from commit bfd31397db5dc1a5c5d3e0a1f753a4f89a736e71)
John Lightsey
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -5489,6 +5489,12 @@ S_study_chunk(pTHX_ RExC_state_t *pRExC_state, regnode **scanp,\n \t\t\t\t RExC_precomp)));\n }\n \n+ if ( ( minnext > 0 && mincount >= SSize_t_MAX / minnext )\n+ || mi...
c
CWE-190
[ "regcomp.c" ]
regcomp.c
1
static int try_read_command_binary(conn *c) { // want to refactor a ton of code either. Header is only ever used out // of c->binary_header, but the extlen stuff is used for the latter // bytes. Just wastes 24 bytes on the stack this way. char extbuf[sizeof(c->binary_header) + BIN_MAX_E...
static int try_read_command_binary(conn *c) { // want to refactor a ton of code either. Header is only ever used out // of c->binary_header, but the extlen stuff is used for the latter // bytes. Just wastes 24 bytes on the stack this way. char extbuf[sizeof(c->binary_header) + BIN_MAX_E...
CVE-2020-10931
{'CWE-120'}
2.9
{'https://github.com/memcached/memcached/commit/02c6a2b62ddcb6fa4569a591d3461a156a636305'}
nvd
Memcached 1.6.x before 1.6.2 allows remote attackers to cause a denial of service (daemon crash) via a crafted binary protocol header to try_read_command_binary in memcached.c.
2020-03-24
1
https://github.com/memcached/memcached
https://github.com/memcached/memcached/commit/02c6a2b62ddcb6fa4569a591d3461a156a636305
02c6a2b62ddcb6fa4569a591d3461a156a636305
SINGLE
['02c6a2b62ddcb6fa4569a591d3461a156a636305']
{'aac7d69207fa08c0114625fbfb35a11d88a0cace'}
02c6a2b62ddcb6fa4569a591d3461a156a636305
1
03/23/2020, 17:16:33
Fix security issue reported by someone. someone will get their name attributed for future issues if they bother following procedure.
dormando
null
{'additions': 3, 'deletions': 2, 'total': 5}
[ { "additions": 3, "changes": 5, "deletions": 2, "patch": "@@ -6175,8 +6175,9 @@ static int try_read_command_binary(conn *c) {\n // want to refactor a ton of code either. Header is only ever used out\n // of c->binary_header, but the extlen stuff is used for the latter\n // by...
c
CWE-120
[ "memcached.c" ]
memcached.c
1
public function readDataByColumns(array $columnArray) // add every array element as a sql condition to the condition string foreach ($columnArray as $columnName => $columnValue) { $sqlWhereCondition .= ' AND ' . $columnName . ' = \'' . $columnValue . '\' '; } // cal...
public function readDataByColumns(array $columnArray) // add every array element as a sql condition to the condition string foreach ($columnArray as $columnName => $columnValue) { $sqlWhereCondition .= ' AND ' . $columnName . ' = ? '; } // call method to read data o...
CVE-2020-11004
{'CWE-89'}
2.9
{'https://github.com/Admidio/admidio/commit/ea5d6f114b151ed11ec0ad7cb47bd729e77a874a'}
nvd
SQL Injection was discovered in Admidio before version 3.3.13. The main cookie parameter is concatenated into a SQL query without any input validation/sanitization, thus an attacker without logging in, can send a GET request with arbitrary SQL queries appended to the cookie parameter and execute SQL queries. The vulner...
2020-04-24
1
https://github.com/Admidio/admidio
https://github.com/Admidio/admidio/commit/ea5d6f114b151ed11ec0ad7cb47bd729e77a874a
ea5d6f114b151ed11ec0ad7cb47bd729e77a874a
SINGLE
['ea5d6f114b151ed11ec0ad7cb47bd729e77a874a']
{'426940079db37b2c03452b2f3b7d19b82909d996'}
ea5d6f114b151ed11ec0ad7cb47bd729e77a874a
1
04/12/2020, 19:29:04
Unauthenticated Blind SQL injection #908
Markus Faßbender
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -444,11 +444,11 @@ public function readDataByColumns(array $columnArray)\n // add every array element as a sql condition to the condition string\n foreach ($columnArray as $columnName => $columnValue)\n {\n- ...
php
CWE-89
[ "adm_program/system/classes/TableAccess.php" ]
adm_program/system/classes/TableAccess.php
1