---
title: "CVE-2012-0848\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2012-0848?format=md
keywords: index, follow
---

# CVE-2012-0848

Publication date 14 February 2012

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

Heap-based buffer overflow in the ws\_snd\_decode\_frame function in
libavcodec/ws-snd1.c in FFmpeg 0.9.1 allows remote attackers to cause a
denial of service (application crash) via a crafted media file, related to
an incorrect calculation, aka "wrong samples count."

[Read the notes from the security team](https://ubuntu.com/security/CVE-2012-0848?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| ffmpeg | 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 11.04 natty | Not in release |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Not affected |
| 8.04 LTS hardy | Ignored end of life |
| ffmpeg-extra | 12.04 LTS precise | Not in release |
| 11.10 oneiric | Not in release |
| 11.04 natty | Not in release |
| 10.10 maverick | Ignored end of life |
| 10.04 LTS lucid | Not affected |
| 8.04 LTS hardy | Not in release |
| libav | 12.04 LTS precise | Not affected |
| 11.10 oneiric | Fixed 4:0.7.6-0ubuntu0.11.10.1 |
| 11.04 natty | Not affected |
| 10.10 maverick | Not in release |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |
| libav-extra | 12.04 LTS precise | Not affected |
| 11.10 oneiric | Fixed |
| 11.04 natty | Not affected |
| 10.04 LTS lucid | Not in release |
| 8.04 LTS hardy | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2012-0848?format=md#patch-details)

## Notes

---

### [jdstrand](https://launchpad.net/~jdstrand)

per upstream, "Simple case of amount written and check mismatching"

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

code is different in ffmpeg 0.5.x and libav 0.6.x, probably not
vulnerable

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| ffmpeg | * Upstream:   <http://git.videolan.org/?p=ffmpeg.git;a=commit;h=9fb7a5af97d8c084c3af2566070d09eae0ab49fc> |
| libav | * Upstream:   <http://git.libav.org/?p=libav.git;a=commit;h=9fb7a5af97d8c084c3af2566070d09eae0ab49fc> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0848)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2012-0848)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2012-0848)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2012-0848)

### Related Ubuntu Security Notices (USN)

+ [USN-1478-1](https://usn.ubuntu.com/USN-1478-1)
+ Libav vulnerabilities
+ 18 June 2012

### Other references

* <http://www.openwall.com/lists/oss-security/2012/02/14/4>
* <https://www.cve.org/CVERecord?id=CVE-2012-0848>
