Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
95d4b7f0
Commit
95d4b7f0
authored
16 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
drop patches backported from upstream
* 0009-libvirt_proxy-Fix-use-of-uninitalized-memory.patch
parent
9b59a198
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/0009-libvirt_proxy-Fix-use-of-uninitalized-memory.patch
+0
-30
0 additions, 30 deletions
...s/0009-libvirt_proxy-Fix-use-of-uninitalized-memory.patch
debian/patches/series
+1
-4
1 addition, 4 deletions
debian/patches/series
with
1 addition
and
34 deletions
debian/patches/0009-libvirt_proxy-Fix-use-of-uninitalized-memory.patch
deleted
100644 → 0
+
0
−
30
View file @
9b59a198
From: Rasputin <rasputin@email.ru>
Date: Tue, 27 Jan 2009 21:33:12 +0300
Subject: [PATCH] libvirt_proxy: Fix use of uninitalized memory
On short read, members of packet header are checked before actually read.
If uninitialized values can pass the test, they can be set to arbitrary
values while reading remaining portion of a packet.
Buffer overflow is possible. libvirt_proxy is suid-root.
CVE-2009-0036
---
proxy/libvirt_proxy.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/proxy/libvirt_proxy.c b/proxy/libvirt_proxy.c
index 3b0dc42..8657f62 100644
--- a/proxy/libvirt_proxy.c
+++ b/proxy/libvirt_proxy.c
@@ -385,7 +385,8 @@
retry:
fprintf(stderr, "read %d bytes from client %d on socket %d\n",
ret, nr, pollInfos[nr].fd);
- if ((req->version != PROXY_PROTO_VERSION) ||
+ if ((ret != sizeof(virProxyPacket)) ||
+ (req->version != PROXY_PROTO_VERSION) ||
(req->len < sizeof(virProxyPacket)) ||
(req->len > sizeof(virProxyFullPacket)))
goto comm_error;
--
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
4
View file @
95d4b7f0
0001-remove-RHism.diff.patch
0002-qemu-disable-network.diff.patch
0003-allow-libvirt-group-to-access-the-socket.patch
0004-Don-t-hardcode-ssh-port.patch
0005-minimal-workaround-for-qemu-startup-race.patch
0009-libvirt_proxy-Fix-use-of-uninitalized-memory.patch
0010-fix-Debian-specific-path-to-hvm-loader.patch
0004-fix-Debian-specific-path-to-hvm-loader.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment