sample_id large_string | dataset large_string | split large_string | source_record_id large_string | source_revision large_string | project large_string | repo_url large_string | canonical_repo_url large_string | commit_url large_string | fixing_commit_sha large_string | variant large_string | is_vulnerable bool | revision_sha large_string | container_path large_string | container_sha256 large_string | source_sha256 large_string | function_name large_string | function_of_interest large_string | prompt large list | file_path large_string | cve_ids large list | cve_description large_string | cwe_ids large list | cwe_description large_string | description large_string | vulnerable_function large_string | fixed_function large_string | commit_message large_string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
000cebd5407544af25e8a8cd | openvul | train | train:8856 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | jabberd2 | https://github.com/jabberd2/jabberd2 | https://github.com/jabberd2/jabberd2 | https://github.com/jabberd2/jabberd2/commit/aabcffae560d5fd00cd1d2ffce5d760353cf0a4d | aabcffae560d5fd00cd1d2ffce5d760353cf0a4d | before | true | 0b1d913899381d3e2cdccbbc7a787561a50389b5 | containers/aa/aabcffae560d5fd00cd1d2ffce5d760353cf0a4d_before.sif | sha256:4323077b8f7cbda20b96e4881dcb303bc3e4e0a103f4d470cf48190528731b48 | sha256:19931247b9797e4b5269a0a6329adb3b954da2ae2f2a9b08964db268c3e231fb | _out_result | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | s2s/out.c | [
"CVE-2012-3525"
] | s2s/out.c in jabberd2 2.2.16 and earlier does not verify that a request was made for an XMPP Server Dialback response, which allows remote XMPP servers to spoof domains via a (1) Verify Response or (2) Authorization Response. | [
"CWE-20"
] | null | null | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | Fixed possibility of Unsolicited Dialback Attacks |
000cebd5407544af25e8a8cd | openvul | train | train:8856 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | jabberd2 | https://github.com/jabberd2/jabberd2 | https://github.com/jabberd2/jabberd2 | https://github.com/jabberd2/jabberd2/commit/aabcffae560d5fd00cd1d2ffce5d760353cf0a4d | aabcffae560d5fd00cd1d2ffce5d760353cf0a4d | after | false | aabcffae560d5fd00cd1d2ffce5d760353cf0a4d | containers/aa/aabcffae560d5fd00cd1d2ffce5d760353cf0a4d_after.sif | sha256:b728d0d4d83c69c80203144aef37ed0b52e21abdc1d717aa4d2295d765ebe359 | sha256:d668d5bd91c9c9dacb6904c919424172636ec867e46b8b6fa17c633bc4c36ca3 | _out_result | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | s2s/out.c | [
"CVE-2012-3525"
] | s2s/out.c in jabberd2 2.2.16 and earlier does not verify that a request was made for an XMPP Server Dialback response, which allows remote XMPP servers to spoof domains via a (1) Verify Response or (2) Authorization Response. | [
"CWE-20"
] | null | null | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | static void _out_result(conn_t out, nad_t nad) {
int attr;
jid_t from, to;
char *rkey;
int rkeylen;
attr = nad_find_attr(nad, 0, -1, "from", NULL);
if(attr < 0 || (from = jid_new(NAD_AVAL(nad, attr), NAD_AVAL_L(nad, attr))) == NULL) {
log_debug(ZONE, "missing or invalid from on db result... | Fixed possibility of Unsolicited Dialback Attacks |
002df632e20f28f79dd6aebf | openvul | train | train:7786 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/45f6fad84cc305103b28d73482b344d7f5b76f39 | 45f6fad84cc305103b28d73482b344d7f5b76f39 | before | true | 01b3f52157ff5a47d6d8d796f396a4b34a53c61d | containers/45/45f6fad84cc305103b28d73482b344d7f5b76f39_before.sif | sha256:11b9faa1b06a2f113554d999ae3bead306ee0c0f045aa5bc7a401b7835ad854a | sha256:de6227a6767b5a30e1fb0adb40e236d66258f90cecb5ba0d265de5c6d4355267 | inet6_csk_route_socket | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | net/ipv6/inet6_connection_sock.c | [
"CVE-2016-3841"
] | The IPv6 stack in the Linux kernel before 4.3.3 mishandles options data, which allows local users to gain privileges or cause a denial of service (use-after-free and system crash) via a crafted sendmsg system call. | [
"CWE-264, CWE-416"
] | null | null | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | ipv6: add complete rcu protection around np->opt
This patch addresses multiple problems :
UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-a... |
002df632e20f28f79dd6aebf | openvul | train | train:7786 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/45f6fad84cc305103b28d73482b344d7f5b76f39 | 45f6fad84cc305103b28d73482b344d7f5b76f39 | after | false | 45f6fad84cc305103b28d73482b344d7f5b76f39 | containers/45/45f6fad84cc305103b28d73482b344d7f5b76f39_after.sif | sha256:09d613bc218022168a94b992e509e3822632c9b62d5478c0052dd40e2c560586 | sha256:ced034de510b27f442b88d45626ef57496b7c688ebccdf818e6c05935181d86c | inet6_csk_route_socket | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | net/ipv6/inet6_connection_sock.c | [
"CVE-2016-3841"
] | The IPv6 stack in the Linux kernel before 4.3.3 mishandles options data, which allows local users to gain privileges or cause a denial of service (use-after-free and system crash) via a crafted sendmsg system call. | [
"CWE-264, CWE-416"
] | null | null | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
struct inet_sock *inet = inet_sk(sk);
struct ipv6_pinfo *np = inet6_sk(sk);
struct in6_addr *final_p, final;
struct dst_entry *dst;
memset(fl6, 0, sizeof(*fl6));
fl6->flowi6_proto = sk->sk_protocol;
fl6->daddr = sk->sk_v... | ipv6: add complete rcu protection around np->opt
This patch addresses multiple problems :
UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-a... |
002fb5a9eda762b0676f7990 | openvul | train | train:7782 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/45f6fad84cc305103b28d73482b344d7f5b76f39 | 45f6fad84cc305103b28d73482b344d7f5b76f39 | before | true | 01b3f52157ff5a47d6d8d796f396a4b34a53c61d | containers/45/45f6fad84cc305103b28d73482b344d7f5b76f39_before.sif | sha256:11b9faa1b06a2f113554d999ae3bead306ee0c0f045aa5bc7a401b7835ad854a | sha256:de6227a6767b5a30e1fb0adb40e236d66258f90cecb5ba0d265de5c6d4355267 | inet6_sk_rebuild_header | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | net/ipv6/af_inet6.c | [
"CVE-2016-3841"
] | The IPv6 stack in the Linux kernel before 4.3.3 mishandles options data, which allows local users to gain privileges or cause a denial of service (use-after-free and system crash) via a crafted sendmsg system call. | [
"CWE-264, CWE-416"
] | null | null | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | ipv6: add complete rcu protection around np->opt
This patch addresses multiple problems :
UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-a... |
002fb5a9eda762b0676f7990 | openvul | train | train:7782 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/45f6fad84cc305103b28d73482b344d7f5b76f39 | 45f6fad84cc305103b28d73482b344d7f5b76f39 | after | false | 45f6fad84cc305103b28d73482b344d7f5b76f39 | containers/45/45f6fad84cc305103b28d73482b344d7f5b76f39_after.sif | sha256:09d613bc218022168a94b992e509e3822632c9b62d5478c0052dd40e2c560586 | sha256:ced034de510b27f442b88d45626ef57496b7c688ebccdf818e6c05935181d86c | inet6_sk_rebuild_header | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | net/ipv6/af_inet6.c | [
"CVE-2016-3841"
] | The IPv6 stack in the Linux kernel before 4.3.3 mishandles options data, which allows local users to gain privileges or cause a denial of service (use-after-free and system crash) via a crafted sendmsg system call. | [
"CWE-264, CWE-416"
] | null | null | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | int inet6_sk_rebuild_header(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct dst_entry *dst;
dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
struct inet_sock *inet = inet_sk(sk);
struct in6_addr *final_p, final;
struct flowi6 fl6;
memset(&fl6, 0, sizeof(fl6));
fl6.flowi6_proto = sk->s... | ipv6: add complete rcu protection around np->opt
This patch addresses multiple problems :
UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions
while socket is not locked : Other threads can change np->opt
concurrently. Dmitry posted a syzkaller
(http://github.com/google/syzkaller) program desmonstrating
use-a... |
00404c78aef7645abddb317d | openvul | train | train:12240 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | tensorflow | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/1970c2158b1ffa416d159d03c3370b9a462aee35 | 1970c2158b1ffa416d159d03c3370b9a462aee35 | before | true | fff2c8326280c07733828f990548979bdc893859 | containers/19/1970c2158b1ffa416d159d03c3370b9a462aee35_before.sif | sha256:425efe01da0ebc3b0e8357f418502e8727804dec64f4c596091b51f85a0225c8 | sha256:947649ae5a0a28f628cb308b3181afc4adf2bdca710f56e8e075efa4ccf281dc | EvalHybrid | void EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* accum_scratch, TfLiteTensor* output) {
... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | tensorflow/lite/kernels/conv.cc | [
"CVE-2020-15211"
] | In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices for the tensors, inde... | [
"CWE-125, CWE-787"
] | null | null | void EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* accum_scratch, TfLiteTensor* output) {
... | TfLiteStatus EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* a... | [tflite]: Insert `nullptr` checks when obtaining tensors.
As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages.
We also insert `nullptr` checks on usages o... |
00404c78aef7645abddb317d | openvul | train | train:12240 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | tensorflow | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow | https://github.com/tensorflow/tensorflow/commit/1970c2158b1ffa416d159d03c3370b9a462aee35 | 1970c2158b1ffa416d159d03c3370b9a462aee35 | after | false | 1970c2158b1ffa416d159d03c3370b9a462aee35 | containers/19/1970c2158b1ffa416d159d03c3370b9a462aee35_after.sif | sha256:fde39b16c9b1f2a94bef2bd9df41f9bd4eb01a5768fef7c0c4a33c03011f3d96 | sha256:7ecbabd9073bbf8dcf9d35896380b0ab042d8fe345e43ce8e8b7711e96056a54 | EvalHybrid | TfLiteStatus EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* a... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | tensorflow/lite/kernels/conv.cc | [
"CVE-2020-15211"
] | In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices for the tensors, inde... | [
"CWE-125, CWE-787"
] | null | null | void EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* accum_scratch, TfLiteTensor* output) {
... | TfLiteStatus EvalHybrid(TfLiteContext* context, TfLiteNode* node,
TfLiteConvParams* params, OpData* data,
const TfLiteTensor* input, const TfLiteTensor* filter,
const TfLiteTensor* bias, TfLiteTensor* im2col,
TfLiteTensor* a... | [tflite]: Insert `nullptr` checks when obtaining tensors.
As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages.
We also insert `nullptr` checks on usages o... |
0044e81c93d0df300a8442ce | openvul | train | train:1536 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2287a51ba822384834dafc1c798453375d1107c7 | 2287a51ba822384834dafc1c798453375d1107c7 | before | true | 3a2b2eb55681158d3e3ef464fbf47574cf0c517c | containers/22/2287a51ba822384834dafc1c798453375d1107c7_before.sif | sha256:30d748dbe4913b42ae8fe82e90191aa8f194c7d1d342358abe4f2c42a67b19f7 | sha256:2b7393ce3cab305702898e4edc95de3a80c72ebec08a5e6def2e9f6690aa8df9 | vt_k_ioctl | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | drivers/tty/vt/vt_ioctl.c | [
"CVE-2021-3753"
] | A race problem was seen in the vt_k_ioctl in drivers/tty/vt/vt_ioctl.c in the Linux kernel, which may cause an out of bounds read in vt as the write access to vc_mode is not protected by lock-in vt_ioctl (KDSETMDE). The highest threat from this vulnerability is to data confidentiality. | [
"CWE-200"
] | null | null | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | vt_kdsetmode: extend console locking
As per the long-suffering comment.
Reported-by: Minh Yuan <yuanmingbuaa@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
0044e81c93d0df300a8442ce | openvul | train | train:1536 | 2da129c70b7d36c41a968dcce074aeb419c0e464 | linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2287a51ba822384834dafc1c798453375d1107c7 | 2287a51ba822384834dafc1c798453375d1107c7 | after | false | 2287a51ba822384834dafc1c798453375d1107c7 | containers/22/2287a51ba822384834dafc1c798453375d1107c7_after.sif | sha256:818b4319b975c9ea63fe8e35b9cd5de20257395ff06612402ff649502c2bba91 | sha256:98b362d75adab1de52c5d6834a9da681c7143042372052a3dff75244b77e6b33 | vt_k_ioctl | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | [
{
"role": "system",
"content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect."... | drivers/tty/vt/vt_ioctl.c | [
"CVE-2021-3753"
] | A race problem was seen in the vt_k_ioctl in drivers/tty/vt/vt_ioctl.c in the Linux kernel, which may cause an out of bounds read in vt as the write access to vc_mode is not protected by lock-in vt_ioctl (KDSETMDE). The highest threat from this vulnerability is to data confidentiality. | [
"CWE-200"
] | null | null | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd,
unsigned long arg, bool perm)
{
struct vc_data *vc = tty->driver_data;
void __user *up = (void __user *)arg;
unsigned int console = vc->vc_num;
int ret;
switch (cmd) {
case KIOCSOUND:
if (!perm)
return -EPERM;
if (arg)
arg = PIT_TICK_RATE... | vt_kdsetmode: extend console locking
As per the long-suffering comment.
Reported-by: Minh Yuan <yuanmingbuaa@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
End of preview. Expand in Data Studio
openvul containers
Before/after Apptainer SIF pairs prepared by Dataset2Container. The Parquet manifests
point to images under containers/; SHA256SUMS authenticates every published file.
function_of_interest contains the source dataset's function body for the row's
variant: the vulnerable function for before, or the fixed function for after.
It is null when that body is unavailable in the source dataset.
prompt contains that variant's original role/content messages when supplied by
the input dataset; it is separate from the extracted function body.
- Downloads last month
- 65