Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files89
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- ipset/
- nf_conntrack_common.h
- nf_conntrack_ftp.h
- nf_conntrack_sctp.h
- nf_conntrack_tcp.h
- nf_conntrack_tuple_common.h
- nf_log.h
- nf_nat.h
- nf_tables.h
- nf_tables_compat.h
- nfnetlink.h
- nfnetlink_acct.h
- nfnetlink_compat.h
- nfnetlink_conntrack.h
- nfnetlink_cthelper.h
- nfnetlink_cttimeout.h
- nfnetlink_log.h
- nfnetlink_osf.h
- nfnetlink_queue.h
- x_tables.h
- xt_AUDIT.h
- xt_CHECKSUM.h
- xt_CLASSIFY.h
- xt_CONNMARK.h
- xt_CONNSECMARK.h
- xt_CT.h
- xt_DSCP.h
- xt_HMARK.h
- xt_IDLETIMER.h
- xt_LED.h
- xt_LOG.h
- xt_MARK.h
- xt_NFLOG.h
- xt_NFQUEUE.h
- xt_RATEEST.h
- xt_SECMARK.h
- xt_SYNPROXY.h
- xt_TCPMSS.h
- xt_TCPOPTSTRIP.h
- xt_TEE.h
- xt_TPROXY.h
- xt_addrtype.h
- xt_bpf.h
- xt_cgroup.h
- xt_cluster.h
- xt_comment.h
- xt_connbytes.h
- xt_connlabel.h
- xt_connlimit.h
- xt_connmark.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
include/uapi/linux/netfilter/xt_sctp.h
Text · 2,318 bytes/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _XT_SCTP_H_
#define _XT_SCTP_H_
#include <linux/types.h>
#define XT_SCTP_SRC_PORTS 0x01
#define XT_SCTP_DEST_PORTS 0x02
#define XT_SCTP_CHUNK_TYPES 0x04
#define XT_SCTP_VALID_FLAGS 0x07
struct xt_sctp_flag_info {
__u8 chunktype;
__u8 flag;
__u8 flag_mask;
};
#define XT_NUM_SCTP_FLAGS 4
struct xt_sctp_info {
__u16 dpts[2]; /* Min, Max */
__u16 spts[2]; /* Min, Max */
__u32 chunkmap[256 / sizeof (__u32)]; /* Bit mask of chunks to be matched according to RFC 2960 */
#define SCTP_CHUNK_MATCH_ANY 0x01 /* Match if any of the chunk types are present */
#define SCTP_CHUNK_MATCH_ALL 0x02 /* Match if all of the chunk types are present */
#define SCTP_CHUNK_MATCH_ONLY 0x04 /* Match if these are the only chunk types present */
__u32 chunk_match_type;
struct xt_sctp_flag_info flag_info[XT_NUM_SCTP_FLAGS];
int flag_count;
__u32 flags;
__u32 invflags;
};
#define bytes(type) (sizeof(type) * 8)
#define SCTP_CHUNKMAP_SET(chunkmap, type) \
do { \
(chunkmap)[type / bytes(__u32)] |= \
1 << (type % bytes(__u32)); \
} while (0)
#define SCTP_CHUNKMAP_CLEAR(chunkmap, type) \
do { \
(chunkmap)[type / bytes(__u32)] &= \
~(1 << (type % bytes(__u32))); \
} while (0)
#define SCTP_CHUNKMAP_IS_SET(chunkmap, type) \
({ \
((chunkmap)[type / bytes (__u32)] & \
(1 << (type % bytes (__u32)))) ? 1: 0; \
})
#define SCTP_CHUNKMAP_RESET(chunkmap) \
memset((chunkmap), 0, sizeof(chunkmap))
#define SCTP_CHUNKMAP_SET_ALL(chunkmap) \
memset((chunkmap), ~0U, sizeof(chunkmap))
#define SCTP_CHUNKMAP_COPY(destmap, srcmap) \
memcpy((destmap), (srcmap), sizeof(srcmap))
#define SCTP_CHUNKMAP_IS_CLEAR(chunkmap) \
__sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap))
static inline _Bool
__sctp_chunkmap_is_clear(const __u32 *chunkmap, unsigned int n)
{
unsigned int i;
for (i = 0; i < n; ++i)
if (chunkmap[i])
return 0;
return 1;
}
#define SCTP_CHUNKMAP_IS_ALL_SET(chunkmap) \
__sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap))
static inline _Bool
__sctp_chunkmap_is_all_set(const __u32 *chunkmap, unsigned int n)
{
unsigned int i;
for (i = 0; i < n; ++i)
if (chunkmap[i] != ~0U)
return 0;
return 1;
}
#endif /* _XT_SCTP_H_ */